[meta-linaro-toolchain][PATCH 5/5] external-linaro-toolchain: Update LIC_FILES_CHKSUM
From: Zongchun Yu Signed-off-by: Zongchun Yu --- .../external-linaro-toolchain.bb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb b/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb index ba56e5c..c3f7014 100644 --- a/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb +++ b/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb @@ -6,7 +6,7 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1" # License applies to this recipe code, not the toolchain itself LICENSE = "MIT" LIC_FILES_CHKSUM = "\ - file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ + file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ " -- 1.7.0.4 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
[meta-linaro-toolchain][PATCH 4/5] external-linaro-toolchain: fix cannot find /lib/ld-linux-aarch64.so.1 issue
From: Zongchun Yu Signed-off-by: Zongchun Yu --- .../external-linaro-toolchain.bb |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb b/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb index 6344b4e..ba56e5c 100644 --- a/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb +++ b/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb @@ -78,7 +78,8 @@ do_install() { fi # fix up the copied symlinks (they are still pointing to the multiarch directory) - ln -sf ld-${ELT_VER_LIBC}.so ${D}${base_libdir}/ld-linux.so.3 + linker_name="${@base_contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", "ld-linux.so.3",d)}" + ln -sf ld-${ELT_VER_LIBC}.so ${D}${base_libdir}/${linker_name} ln -sf ../../lib/libnsl.so.1 ${D}${libdir}/libnsl.so ln -sf ../../lib/librt.so.1 ${D}${libdir}/librt.so ln -sf ../../lib/libcrypt.so.1 ${D}${libdir}/libcrypt.so -- 1.7.0.4 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
[meta-linaro-toolchain][PATCH 3/5] external-linaro-toolchain: add staticdev package for libgfortran
From: Zongchun Yu Signed-off-by: Zongchun Yu --- .../external-linaro-toolchain.bb |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb b/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb index 035e49e..6344b4e 100644 --- a/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb +++ b/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb @@ -31,6 +31,7 @@ PROVIDES += "\ libssp-staticdev \ libgfortran \ libgfortran-dev \ + libgfortran-staticdev \ libmudflap \ libmudflap-dev \ libgomp \ @@ -131,6 +132,7 @@ PACKAGES =+ "\ libssp-staticdev \ libgfortran \ libgfortran-dev \ + libgfortran-staticdev \ libmudflap \ libmudflap-dev \ libmudflap-staticdev \ @@ -278,8 +280,9 @@ FILES_libssp-staticdev = " \ FILES_libgfortran = "${base_libdir}/libgfortran.so.*" FILES_libgfortran-dev = " \ + ${base_libdir}/libgfortran.so" +FILES_libgfortran-staticdev = " \ ${base_libdir}/libgfortran.a \ - ${base_libdir}/libgfortran.so \ ${base_libdir}/libgfortranbegin.a" FILES_libmudflap = "${base_libdir}/libmudflap*.so.*" -- 1.7.0.4 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
[meta-linaro-toolchain][PATCH 1/5] external-linaro-toolchain: Add support for 64bit toolchain
From: Zongchun Yu Signed-off-by: Zongchun Yu --- .../conf/distro/include/tcmode-external-linaro.inc |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc b/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc index 831b168..ed00a00 100644 --- a/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc +++ b/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc @@ -7,7 +7,9 @@ EXTERNAL_TOOLCHAIN ?= "/usr/local/linaro-binary-toolchain/${TARGET_ARCH}" TOOLCHAIN_PATH_ADD = "${EXTERNAL_TOOLCHAIN}/bin:" PATH =. "${TOOLCHAIN_PATH_ADD}" -ELT_TARGET_SYS ?= "arm-linux-gnueabihf" +ELT_TARGET_SYS_arm ?= "arm-linux-gnueabihf" +ELT_TARGET_SYS_aarch64 ?= "aarch64-linux-gnu" +ELT_TARGET_SYS = "${TARGET_SYS}" TARGET_PREFIX = "${ELT_TARGET_SYS}-" GCCMULTILIB_forcevariable = "--disable-multilib" -- 1.7.0.4 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
[meta-linaro-toolchain][PATCH 2/5] external-linaro-toolchain: fix No GNU_HASH in the elf binary QA Issue
From: Zongchun Yu Signed-off-by: Zongchun Yu --- .../conf/distro/include/tcmode-external-linaro.inc | 27 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc b/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc index ed00a00..e1098c0 100644 --- a/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc +++ b/meta-linaro-toolchain/conf/distro/include/tcmode-external-linaro.inc @@ -46,6 +46,33 @@ DISTRO_FEATURES_LIBC = "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-c ENABLE_BINARY_LOCALE_GENERATION = "0" GLIBC_INTERNAL_USE_BINARY_LOCALE = "precompiled" +ERROR_QA[type] ?= "list" +python toolchain_metadata_setup () { +import subprocess +if not isinstance(e, bb.event.ConfigParsed): +return + +d = e.data +l = d.createCopy() +l.finalize() +oe_import(l) + +external_toolchain = l.getVar('EXTERNAL_TOOLCHAIN', True) +if not external_toolchain or external_toolchain == 'UNDEFINED': +bb.fatal("Error: EXTERNAL_TOOLCHAIN must be set to the path to your linaro toolchain") + +if not os.path.exists(external_toolchain): +bb.fatal("Error: EXTERNAL_TOOLCHAIN path '%s' does not exist" % external_toolchain) + +# The external toolchain may not have been built with the yocto preferred +# gnu hash setting, so ensure that the corresponding sanity check is not an error. +error_qa = oe.data.typed_value('ERROR_QA', l) +if 'ldflags' in error_qa: +error_qa.remove('ldflags') +d.setVar('ERROR_QA', ' '.join(error_qa)) +} +addhandler toolchain_metadata_setup + def populate_toolchain_links(d): import errno import os -- 1.7.0.4 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: device tree validation
Hi Tom, Look for something in dtc package. I use fdtdump to get back text from binary device tree file. I guess, ftddump would fail if binary device tree file is corrupted. [kamensky@kamensky-w530 notes]$ rpm -qf /usr/bin/fdtdump dtc-1.4.0-1.fc18.x86_64 [kamensky@kamensky-w530 notes]$ rpm -ql dtc /usr/bin/convert-dtsv0 /usr/bin/dtc /usr/bin/dtdiff /usr/bin/fdtdump /usr/bin/fdtget /usr/bin/fdtput /usr/share/doc/dtc-1.4.0 /usr/share/doc/dtc-1.4.0/GPL Thanks, Victor On 21 January 2014 17:39, Tom Gall wrote: > Are there any tools for validating device tree files? > > I'm getting a device tree header not valid error in rtsm err:-9 but > obviously that doesn't give any hints about what line it might be. > > Thanks! > > -- > Regards, > Tom > > "Where's the kaboom!? There was supposed to be an earth-shattering > kaboom!" Marvin Martian > Tech Lead, Graphics Working Group | Linaro.org │ Open source software > for ARM SoCs > w) tom.gall att linaro.org > h) tom_gall att mac.com > > ___ > linaro-dev mailing list > linaro-dev@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-dev ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
device tree validation
Are there any tools for validating device tree files? I'm getting a device tree header not valid error in rtsm err:-9 but obviously that doesn't give any hints about what line it might be. Thanks! -- Regards, Tom "Where's the kaboom!? There was supposed to be an earth-shattering kaboom!" Marvin Martian Tech Lead, Graphics Working Group | Linaro.org │ Open source software for ARM SoCs w) tom.gall att linaro.org h) tom_gall att mac.com ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev