[oe-commits] org.oe.dev u-boot: added GIT version with DEF_PREF = -1 to not select it automatically

hrw commit openembedded-commits at lists.openembedded.org
Thu Jan 4 08:51:10 UTC 2007


u-boot: added GIT version with DEF_PREF = -1 to not select it automatically

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 624e4cbb972e04d84e15da2a3aeec793dc467ce3
ViewMTN: http://monotone.openembedded.org/revision.psp?id=624e4cbb972e04d84e15da2a3aeec793dc467ce3
Files:
1
packages/uboot/u-boot_git.bb
Diffs:

#
# mt diff -r09305c823d9f19072b33e80016e65740d1f94562 -r624e4cbb972e04d84e15da2a3aeec793dc467ce3
#
# 
# 
# add_file "packages/uboot/u-boot_git.bb"
#  content [647c38c6dd82905949e15f573b51a74b2dfa0ed5]
# 
============================================================
--- packages/uboot/u-boot_git.bb	647c38c6dd82905949e15f573b51a74b2dfa0ed5
+++ packages/uboot/u-boot_git.bb	647c38c6dd82905949e15f573b51a74b2dfa0ed5
@@ -0,0 +1,40 @@
+DESCRIPTION = "U-boot bootloader"
+PROVIDES = "virtual/bootloader"
+SECTION = "bootloader"
+PRIORITY = "optional"
+LICENSE = "GPL"
+
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git "
+
+S = "${WORKDIR}/git"
+
+#EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CFLAGS="" CPPFLAGS="" LDFLAGS="""
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
+
+UBOOT_MACHINE ?= "${MACHINE}_config"
+UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.bin"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+#inherit base
+
+do_compile () {
+	unset LDFLAGS
+	unset CFLAGS
+	unset CPPFLAGS
+	oe_runmake ${UBOOT_MACHINE}
+	oe_runmake all
+}
+
+do_stage() {
+	install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}
+}
+
+do_deploy () {
+	install -d ${DEPLOY_DIR_IMAGE}
+	install ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
+}
+do_deploy[dirs] = "${S}"
+addtask deploy before do_build after do_compile






More information about the Openembedded-commits mailing list