aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx23/image
diff options
context:
space:
mode:
authorZoltan HERPAI <wigyori@uid0.hu>2013-08-22 19:29:07 +0000
committerZoltan HERPAI <wigyori@uid0.hu>2013-08-22 19:29:07 +0000
commit3f07009cc2bc71ad3418190a161edf425a094e9e (patch)
treed63e98e99d41e101141636733cff28e240927362 /target/linux/imx23/image
parentac9d29fbc2ef2495e2a4860bc9697c7a8e407370 (diff)
downloadupstream-3f07009cc2bc71ad3418190a161edf425a094e9e.tar.gz
upstream-3f07009cc2bc71ad3418190a161edf425a094e9e.tar.bz2
upstream-3f07009cc2bc71ad3418190a161edf425a094e9e.zip
imx23: add support for u-boot image build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37823 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx23/image')
-rw-r--r--target/linux/imx23/image/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/imx23/image/Makefile b/target/linux/imx23/image/Makefile
index 3aeb21bf3c..b9102375d6 100644
--- a/target/linux/imx23/image/Makefile
+++ b/target/linux/imx23/image/Makefile
@@ -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