meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
Eric Nelson 373e77941b u-boot-boundary/u-boot-script-boundary: update to fcb04d6 (v2014.07)
Update to Boundary Devices U-Boot 2014.07 tree.

This update only contains a single general-purpose change to the
boot script: the addition of an environment variable 'wlmac' which
will be passed to the WL12xx WiFi driver to be used as the mac
address to prevent the need to use the calibrator utility and
manage files that differ across devices.

The U-Boot source files did not change and the version is bumped
only to keep the two recipes in sync and prevent multiple downloads.

If you configure your board like this:
	U-Boot > setenv wlmac 00🇩🇪ad:be:ef:01
	U-Boot > saveenv && boot

You'll get a clause in your kernel command line:
	wlcore.mac=00🇩🇪ad:be:ef:01

All Boundary Devices Nitrogen6x and Nitrogen6_Max boards shipped
with the WL12xx WiFi/BT adapter should have this variable set
before shipment.

If not, please contact Boundary Devices at info@boundarydevices.com

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-03-20 11:15:22 -03:00

59 lines
1.9 KiB
BlitzBasic

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
DEPENDS = "u-boot-mkimage-native"
PV = "v2014.07+git${SRCPV}"
SRCREV = "fcb04d6103e2a1f62d3ae197432559aee5621765"
SRCBRANCH = "v2014.07-20140914"
SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
S = "${WORKDIR}/git"
inherit deploy
BOOTSCRIPT ?= "${S}/board/boundary/${MACHINE}/6x_bootscript-yocto.txt"
BOOTSCRIPT_imx6qsabrelite ?= "${S}/board/boundary/nitrogen6x/6x_bootscript-yocto.txt"
BOOTSCRIPT_nitrogen6x-lite ?= "${S}/board/boundary/nit6xlite/6x_bootscript-yocto.txt"
UPGRADESCRIPT = "${S}/board/boundary/nitrogen6x/6x_upgrade.txt"
do_mkimage () {
# allow deploy to use the ${MACHINE} name to simplify things
if [ ! -d board/boundary/${MACHINE} ]; then
mkdir board/boundary/${MACHINE}
fi
uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
-n "boot script" -d ${BOOTSCRIPT} \
board/boundary/${MACHINE}/6x_bootscript
uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
-n "upgrade script" -d ${UPGRADESCRIPT} \
board/boundary/${MACHINE}/6x_upgrade
}
addtask mkimage after do_compile before do_install
do_deploy () {
install -d ${DEPLOYDIR}
install ${S}/board/boundary/${MACHINE}/6x_bootscript \
${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR}
install ${S}/board/boundary/${MACHINE}/6x_upgrade \
${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR}
cd ${DEPLOYDIR}
rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE}
ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE}
ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE}
}
addtask deploy after do_install before do_build
do_compile[noexec] = "1"
do_install[noexec] = "1"
do_populate_sysroot[noexec] = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite)"