On 09/12/2012 04:10 PM, Tom Warren wrote: > This builds & boots to the command prompt on a Cardhu (T30) board. > This is a barebones binary - no I2C, USB, MMC, SPI, etc. > Drivers for those peripherals to follow.
> diff --git a/Makefile b/Makefile > ifeq ($(SOC),tegra20) > LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o > endif > +ifeq ($(SOC),tegra30) > +LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o > +endif To avoid adding more and more copies of that assignment, how about: ifneq ($(filter $(SOC),tegra20 tegra30),) LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o endif The same trick can be applied to the other two changes in this file, and spl/Makefile. Or perhaps you can just use: ifneq ($(CONFIG_TEGRA),) > diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c > +#if defined(CONFIG_TEGRA20) > #include <asm/arch/tegra20.h> > +#else /* Tegra30 */ > +#include <asm/arch/tegra30.h> > +#endif If that file got renamed to tegra.h in both places, you wouldn't need ifdefs around the include. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot