imx23: add support for u-boot image build
authorZoltan Herpai <wigyori@uid0.hu>
Thu, 22 Aug 2013 19:29:07 +0000 (19:29 +0000)
committerZoltan Herpai <wigyori@uid0.hu>
Thu, 22 Aug 2013 19:29:07 +0000 (19:29 +0000)
SVN-Revision: 37823

target/linux/imx23/image/Makefile

index 3aeb21bf3caef75f7307903ffc80c714c9b47d40..b9102375d6b77aa39da7ac5172c5e26a998e0030 100644 (file)
@@ -17,12 +17,23 @@ define Image/BuildKernel/olinuxino-bootlet
        )
 endef
 
+define Image/BuildKernel/olinuxino-uboot
+       mkimage -A arm -O linux -T kernel -C none \
+               -a 0x42000000 -e 0x42000000 \
+               -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' \
+               -d $(KDIR)/vmlinux $(KDIR)/uImage
+       cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
+endef
+
 define Image/BuildKernel
 
   ifeq ($(CONFIG_PACKAGE_imx-bootlets),y)
        $(call Image/BuildKernel/olinuxino-bootlet)
   endif
 
+  ifeq ($(CONFIG_PACKAGE_uboot-imx23-mx23_olinuxino),y)
+       $(call Image/BuildKernel/olinuxino-uboot)
+  endif
 endef
 
 define Image/Build