Use native python as u-boot tool

Signed-off-by: Sebastian Panceac <sebastian@resin.io>
This commit is contained in:
Sebastian Panceac 2018-04-12 12:07:50 +02:00 committed by Florin Sarbu
parent 3a53c67f20
commit 484405142e
2 changed files with 6 additions and 2 deletions
CHANGELOG.md
layers/meta-resin-allwinner/recipes-bsp/u-boot

View file

@ -1,5 +1,7 @@
Change log
-----------
* Use native python as u-boot tool [Sebastian]
* Update resin-yocto-scripts to f7718efbbf53369aaacb7eb54e707ee8a5d4fc4b [Sebastian]
# v2.12.5+rev3

View file

@ -4,7 +4,7 @@ require recipes-bsp/u-boot/u-boot.inc
FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot_2017.11:"
DEPENDS += " bc-native dtc-native swig-native python3-native "
DEPENDS += " bc-native dtc-native swig-native python-native "
LICENSE = "GPLv2"
@ -78,7 +78,9 @@ SPL_BINARY="u-boot-sunxi-with-spl.bin"
UBOOT_ENV_SUFFIX = "scr"
UBOOT_ENV = "boot"
EXTRA_OEMAKE += ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
EXTRA_OEMAKE += ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" \
PYTHON=${STAGING_DIR_NATIVE}/usr/bin/python-native/python STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'
do_compile_append() {
${B}/tools/mkimage -C none -A arm -T script -d ${WORKDIR}/boot.cmd ${WORKDIR}/${UBOOT_ENV_BINARY}