1 DESCRIPTION = "U-Boot - the Universal Boot Loader"
2 HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
3 SECTION = "bootloaders"
6 PROVIDES = "virtual/bootloader"
10 PACKAGE_ARCH = "${MACHINE_ARCH}"
13 EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
15 UBOOT_MACHINE ?= "${MACHINE}_config"
16 UBOOT_BINARY ?= "u-boot.bin"
17 UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
18 UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
24 oe_runmake ${UBOOT_MACHINE}
31 install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
32 ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
34 if [ -e ${WORKDIR}/fw_env.config ] ; then
35 install -d ${D}${base_sbindir}
36 install -d ${D}${sysconfdir}
37 install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
38 install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
39 install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
45 # no gnu_hash in uboot.bin, by design, so skip QA
46 INSANE_SKIP_${PN} = True
48 PACKAGES += "${PN}-fw-utils"
49 FILES_${PN}-fw-utils = "${sysconfdir} ${base_sbindir}"
50 # u-boot doesn't use LDFLAGS for fw files, needs to get fixed, but until then:
51 INSANE_SKIP_${PN}-fw-utils = True
54 install -d ${DEPLOY_DIR_IMAGE}
55 install ${S}/${UBOOT_BINARY} ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
56 package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
58 cd ${DEPLOY_DIR_IMAGE}
59 rm -f ${UBOOT_SYMLINK}
60 ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
61 package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_SYMLINK}
63 do_deploy[dirs] = "${S}"
64 addtask deploy before do_build after do_compile
67 install -d ${STAGING_BINDIR_NATIVE}
68 install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}/