[oe-commits] Ulf Samuelsson : Allow make install for u-boot

git version control git at git.openembedded.org
Thu Aug 13 23:33:38 UTC 2009


Module: openembedded.git
Branch: ulf/linux-2.6.30.2
Commit: 67b8d63dd347d61390e477765f9231c930b350d7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=67b8d63dd347d61390e477765f9231c930b350d7

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Fri Aug 14 01:25:31 2009 +0200

Allow make install for u-boot

---

 .../u-boot-2009.08-rc1-008-Makefile.patch          |    2 +-
 recipes/u-boot/u-boot_2009.08-rc2.bb               |   21 +++++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc1-008-Makefile.patch b/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc1-008-Makefile.patch
index 4e208dc..c8e39fa 100644
--- a/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc1-008-Makefile.patch
+++ b/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc1-008-Makefile.patch
@@ -14,7 +14,7 @@ diff -urN u-boot-2009.08-rc1-0rig/Makefile u-boot-2009.08-rc1/Makefile
  ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
  
 +ifneq ($(BOARDNAME),)
-+BINARY := $(BOARDNAME)-u-boot-$(U_BOOT_VERSION)-$(BUILD_DATE)
++BINARY := u-boot-$(BOARDNAME)-$(U_BOOT_VERSION)-$(REVISION)
 +BINARY_BIN := $(obj)$(BINARY).bin
 +BINARY_GZ  := $(obj)$(BINARY).gz
 +ALL += $(BINARY_BIN)
diff --git a/recipes/u-boot/u-boot_2009.08-rc2.bb b/recipes/u-boot/u-boot_2009.08-rc2.bb
index 02a87d5..8af45cf 100644
--- a/recipes/u-boot/u-boot_2009.08-rc2.bb
+++ b/recipes/u-boot/u-boot_2009.08-rc2.bb
@@ -31,10 +31,29 @@ SRC_URI_append = " \
 	"
 
 TARGET_LDFLAGS = ""
-ALLOW_EMPTY = "1"
+
 inherit base
 
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} DESTDIR=${DEPLOY_DIR_IMAGE} REVISION=${PR}"
+EXTRA_OEMAKE += "BOARDNAME=${MACHINE}"
+EXTRA_OEMAKE += "BUILD_DATE=${MACHINE}"
+EXTRA_OEMAKE += "U_BOOT_VERSION=${PV}"
+EXTRA_OEMAKE += "TFTPBOOT=/tftpboot"
+
+
 do_compile () {
+	unset LDFLAGS
+	unset CFLAGS
+	unset CPPFLAGS
 	oe_runmake ${UBOOT_MACHINE}
 	oe_runmake all
+	oe_runmake install
+	package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
+
+	cd ${DEPLOY_DIR_IMAGE}
+	rm -f ${UBOOT_SYMLINK}
+	ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
+	package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_SYMLINK}
+
+#	oe_runmake tftp
 }





More information about the Openembedded-commits mailing list