Просмотр исходного кода

only build avr32 u-boot if requested, fixes build failure in default config

SVN-Revision: 12116
Felix Fietkau 17 лет назад
Родитель
Сommit
05014415c1
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      target/linux/avr32/image/Makefile

+ 6 - 4
target/linux/avr32/image/Makefile

@@ -8,13 +8,15 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
-define Build/Clean
+ifneq ($(CONFIG_AVR32_UBOOT),)
+  define Build/Clean
 	$(MAKE) -C u-boot clean
-endef
+  endef
 
-define Build/Compile
+  define Build/Compile
 	$(MAKE) -C u-boot compile
-endef
+  endef
+endif
 
 define Image/Prepare
 	cp $(LINUX_DIR)/arch/avr32/boot/images/uImage $(KDIR)/uImage