imx23: add support for u-boot image build

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37823 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Zoltan HERPAI 2013-08-22 19:29:07 +00:00
parent ac9d29fbc2
commit 3f07009cc2
1 changed files with 11 additions and 0 deletions

View 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