summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/avr32/image/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/avr32/image/Makefile b/target/linux/avr32/image/Makefile
index 2cef265..c74efbe 100644
--- a/target/linux/avr32/image/Makefile
+++ b/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