mxsldr: Add recipe
PATCH 1/5 mxsldr: Add recipe
This provides an USB loader compatible with mxs SoCs and is specially useful for toolchains.
--- recipes-bsp/mxsldr/mxsldr_git.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-bsp/mxsldr/mxsldr_git.bb
recipes-bsp/mxsldr/mxsldr_git.bb new file +18 -0
@@ -0,0 +1,18 @@ +# Copyright (C) 2012 O.S. Systems Software LTDA. +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Freescale i.MX233/i.MX28 USB loader" +DEPENDS = "libusb" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRCREV = "3463b576b67f03012a59cedd8e55e9d37c5cea76" +SRC_URI = "git://git.bfuser.eu/git/marex/mxsldr.git;protocol=http" + +PV = "0.0.0+git${SRCPV}" + +S = "${WORKDIR}/git" + +inherit autotools + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.7.10.4
PATCH 2/5 amd-gpu-x11-bin-mx51: Use a python function to populate INSANE_SKIP
To avoid manually set the INSANE_SKIP we use an annonymous python snip to dynamically set it for every package so makeing it more robust and easy to understand.
--- .../amd-gpu-x11-bin-mx51_11.09.01.bb | 32 +++++--------------- 1 file changed, 8 insertions(+), 24 deletions(-)
recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb +8 -24
@@ -4,7 +4,7 @@ DESCRIPTION = "GPU driver and apps for x11 on mx51" LICENSE = "Proprietary" SECTION = "libs" -PR = "r11" +PR = "r12" #todo: Replace for correct AMD license LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
@@ -19,6 +19,13 @@ SRC_URI[sha256sum] = "c7a6fa03b7aa2a375556c59908876554ba720c1e744baba2debb84a408 inherit fsl-eula-unpack +# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have +# the source we cannot fix it. Disable the insane check for now. +python populate_packages_prepend() { + for p in d.getVar('PACKAGES', True).split(): + d.setVar("INSANE_SKIP_%s" % p, "ldflags") +} + do_install () { install -d ${D}${libdir} install -d ${D}${bindir}
@@ -49,56 +56,33 @@ PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \ lib2dz160-mx51 lib2dz160-mx51-dbg \ lib2dz430-mx51 lib2dz430-mx51-dbg" -INSANE_SKIP_${PN} = "ldflags" - FILES_${PN}-dbg = "${bindir}/.debug/*" FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}" FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}" FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}" -INSANE_SKIP_libgsl-fsl-mx51 = "ldflags" -INSANE_SKIP_libgsl-fsl-mx51-dev = "ldflags" -INSANE_SKIP_libgsl-fsl-mx51-dbg = "ldflags" - FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}" FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}" FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}" -INSANE_SKIP_libegl-mx51 = "ldflags" -INSANE_SKIP_libegl-mx51-dev = "ldflags" -INSANE_SKIP_libegl-mx51-dbg = "ldflags" - FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}" FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}" FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}" -INSANE_SKIP_libgles-mx51 = "ldflags" -INSANE_SKIP_libgles-mx51-dev = "ldflags" -INSANE_SKIP_libgles-mx51-dbg = "ldflags" FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}" FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}" FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}" -INSANE_SKIP_libgles2-mx51 = "ldflags" -INSANE_SKIP_libgles2-mx51-dev = "ldflags" -INSANE_SKIP_libgles2-mx51-dbg = "ldflags" FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}" FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}" FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}" -INSANE_SKIP_libopenvg-mx51 = "ldflags" -INSANE_SKIP_libopenvg-mx51-dev = "ldflags" -INSANE_SKIP_libopenvg-mx51-dbg = "ldflags" FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}" FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}" -INSANE_SKIP_lib2dz160-mx51 = "ldflags" -INSANE_SKIP_lib2dz160-mx51-dbg = "ldflags" FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}" FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}" -INSANE_SKIP_lib2dz430-mx51 = "ldflags" -INSANE_SKIP_lib2dz430-mx51-dbg = "ldflags" COMPATIBLE_MACHINE = "(mx5)" PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.10.4
Re: [meta-fsl-arm][PATCH 2/5] amd-gpu-x11-bin-mx51: Use a python function to populate INSANE_SKIP
It looks fine to me
Daiane
PATCH 3/5 meta-toolchain: Include elftosb and mxsldr in toolchain
In reply to Otavio Salvador--- recipes-core/meta/meta-toolchain.bbappend | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 recipes-core/meta/meta-toolchain.bbappend
recipes-core/meta/meta-toolchain.bbappend new file +6 -0
@@ -0,0 +1,6 @@ +PRINC := "${@int(PRINC) + 1}" + +IMAGE_INSTALL += " \ + elftosb-nativesdk \ + mxsldr-nativesdk \ +"
Signature · 1 line
1.7.10.4
Re: [meta-fsl-arm][PATCH 3/5] meta-toolchain: Include elftosb and mxsldr in toolchain
it looks fine to me
PATCH 4/5 imx-lib: Set PACKAGE_ARCH to MACHINE_ARCH
In reply to Otavio SalvadorThe imx-lib needs to be build to the specific platform so it is machine dependant requiring the set of PACKAGE_ARCH according.
--- recipes-multimedia/imx-lib/imx-lib_11.09.01.bb | 1 + recipes-multimedia/imx-lib/imx-lib_12.09.01.bb | 1 + 2 files changed, 2 insertions(+)
recipes-multimedia/imx-lib/imx-lib_11.09.01.bb +1 -0
@@ -7,4 +7,5 @@ SRC_URI += " file://0001-ENGR00156800-vpu-Fix-decoding-mp4PackedPBFrame-strea.pa SRC_URI[md5sum] = "45574f8f32f7000ca11d585fa60dea8c" SRC_URI[sha256sum] = "f151a8bb3099b596b5834a1139c19e526802e6a0aa965018d16375e7e1f48f27" +PACKAGE_ARCH = "${MACHINE_ARCH}" COMPATIBLE_MACHINE = "(mx5)"
recipes-multimedia/imx-lib/imx-lib_12.09.01.bb +1 -0
@@ -5,4 +5,5 @@ PR = "${INC_PR}.0" SRC_URI[md5sum] = "1ec3b9bcfaf9c0eba4babc2a3b56a5bb" SRC_URI[sha256sum] = "9af3d62f70f1efcecd62eadb4d79ded64a699ca9e162c7494c51eb7afee0810d" +PACKAGE_ARCH = "${MACHINE_ARCH}" COMPATIBLE_MACHINE = "(mx6)"
Signature · 1 line
1.7.10.4
Re: [meta-fsl-arm][PATCH 4/5] imx-lib: Set PACKAGE_ARCH to MACHINE_ARCH
Please BUMP both recipes
Daiane
PATCH 5/5 imx-lib: Fix build system to allow override of CC and AR commands
In reply to Otavio SalvadorThe build system should use CC and AR from environment if those are set; this is need to allow cross building to work as it might need to set sysroot options for gcc calls.
--- recipes-multimedia/imx-lib/imx-lib.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
recipes-multimedia/imx-lib/imx-lib.inc +6 -1
@@ -5,7 +5,7 @@ LICENSE = "LGPLv2.1" SECTION = "multimedia" DEPENDS = "virtual/kernel" -INC_PR = "r3" +INC_PR = "r4" LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e"
@@ -17,6 +17,11 @@ PLATFORM_mx5 = "IMX51" PARALLEL_MAKE="-j 1" EXTRA_OEMAKE = "" +do_configure_append () { + # FIXME: The build system does not allow CC and AR to be overriden + find ${S} -name Makefile | xargs sed -i 's,^\(CC\|AR\)=,\1 ?=,g' +} + do_compile () { INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \
Signature · 1 line
1.7.10.4
Re: [meta-fsl-arm][PATCH 5/5] imx-lib: Fix build system to allow override of CC and AR commands
it looks fine to me, but it will get a conflict when you BUMP this file on previous patch.
So, please, send a v2 for this patch
Daiane
It looks fine to me.
Daiane
Fabio Estevam
reviewerQuoted 2 lines · Otavio Salvador
This provides an USB loader compatible with mxs SoCs and is specially useful for toolchains.
Toolchains? What do you mean?
recipes-bsp/mxsldr/mxsldr_git.bb line 10
Quoted 2 lines
recipes-bsp/mxsldr/mxsldr_git.bb new file +2
-0+SRCREV = "3463b576b67f03012a59cedd8e55e9d37c5cea76" +SRC_URI = "git://git.bfuser.eu/git/marex/mxsldr.git;protocol=http"
Isn't this tool supposed to run on the host PC?
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Otavio Salvador
This provides an USB loader compatible with mxs SoCs and is specially useful for toolchains.
Toolchains? What do you mean?
It will be included in meta-toolchain so host can use it.
Quoted 4 lines
recipes-bsp/mxsldr/mxsldr_git.bb line 10
Quoted 2 lines
recipes-bsp/mxsldr/mxsldr_git.bb new file +2
-0+SRCREV = "3463b576b67f03012a59cedd8e55e9d37c5cea76" +SRC_URI = "git://git.bfuser.eu/git/marex/mxsldr.git;protocol=http"Isn't this tool supposed to run on the host PC?
Yes but it has nothing that makes it impossible to run in an arm machine as well. So we inherit native and nativesdk due this.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br