* [PATCH 0/5] Fix live images when using the extensible sdk
@ 2015-10-23 3:30 Randy Witt
2015-10-23 3:30 ` [PATCH 1/5] Add 850 codepage to uninative-tarball Randy Witt
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Randy Witt @ 2015-10-23 3:30 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 505a82673ac2487df5ea343a6422c2fc47018831:
build-appliance-image: Update to jethro head revision (2015-10-21 23:13:11 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib rewitt/codepage
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rewitt/codepage
Randy Witt (3):
Add 850 codepage to uninative-tarball
mtools_4.0.18.bb: Use create_wrapper() for mcopy
wic/utils/oe/misc.py: Preserve PATH when running native tools
Richard Purdie (2):
scripts/oe-pkgdata-util: Fix variable name in error handling
populate_sdk_base: Ensure PKGDATA_DIR exists
meta/classes/populate_sdk_base.bbclass | 2 +-
meta/recipes-core/meta/uninative-tarball.bb | 1 +
meta/recipes-devtools/mtools/mtools_4.0.18.bb | 5 +++++
scripts/lib/wic/utils/oe/misc.py | 20 ++++++++++++++++----
scripts/oe-pkgdata-util | 2 +-
5 files changed, 24 insertions(+), 6 deletions(-)
--
2.4.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/5] Add 850 codepage to uninative-tarball
2015-10-23 3:30 [PATCH 0/5] Fix live images when using the extensible sdk Randy Witt
@ 2015-10-23 3:30 ` Randy Witt
2015-10-23 3:30 ` [PATCH 2/5] scripts/oe-pkgdata-util: Fix variable name in error handling Randy Witt
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Randy Witt @ 2015-10-23 3:30 UTC (permalink / raw)
To: openembedded-core
---
meta/recipes-core/meta/uninative-tarball.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/meta/uninative-tarball.bb b/meta/recipes-core/meta/uninative-tarball.bb
index 41f7927..21f3bd9 100644
--- a/meta/recipes-core/meta/uninative-tarball.bb
+++ b/meta/recipes-core/meta/uninative-tarball.bb
@@ -7,6 +7,7 @@ TOOLCHAIN_TARGET_TASK = ""
TOOLCHAIN_HOST_TASK = "\
nativesdk-glibc \
+ nativesdk-glibc-gconv-ibm850 \
nativesdk-patchelf \
"
--
2.4.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/5] scripts/oe-pkgdata-util: Fix variable name in error handling
2015-10-23 3:30 [PATCH 0/5] Fix live images when using the extensible sdk Randy Witt
2015-10-23 3:30 ` [PATCH 1/5] Add 850 codepage to uninative-tarball Randy Witt
@ 2015-10-23 3:30 ` Randy Witt
2015-10-23 3:30 ` [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists Randy Witt
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Randy Witt @ 2015-10-23 3:30 UTC (permalink / raw)
To: openembedded-core
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Fix:
logger.error('Unable to find pkgdata directory %s' % pkgdata_dir)
NameError: global name 'pkgdata_dir' is not defined
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/oe-pkgdata-util | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index 116cfae..cb19cc4 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -496,7 +496,7 @@ def main():
sys.exit(1)
if not os.path.exists(args.pkgdata_dir):
- logger.error('Unable to find pkgdata directory %s' % pkgdata_dir)
+ logger.error('Unable to find pkgdata directory %s' % args.pkgdata_dir)
sys.exit(1)
ret = args.func(args)
--
2.4.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists
2015-10-23 3:30 [PATCH 0/5] Fix live images when using the extensible sdk Randy Witt
2015-10-23 3:30 ` [PATCH 1/5] Add 850 codepage to uninative-tarball Randy Witt
2015-10-23 3:30 ` [PATCH 2/5] scripts/oe-pkgdata-util: Fix variable name in error handling Randy Witt
@ 2015-10-23 3:30 ` Randy Witt
2015-10-23 4:11 ` Christopher Larson
2015-10-23 3:30 ` [PATCH 4/5] mtools_4.0.18.bb: Use create_wrapper() for mcopy Randy Witt
2015-10-23 3:30 ` [PATCH 5/5] wic/utils/oe/misc.py: Preserve PATH when running native tools Randy Witt
4 siblings, 1 reply; 8+ messages in thread
From: Randy Witt @ 2015-10-23 3:30 UTC (permalink / raw)
To: openembedded-core
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/populate_sdk_base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 36876e8..0a0ba91 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -188,7 +188,7 @@ populate_sdk_log_check() {
done
}
-do_populate_sdk[dirs] = "${TOPDIR}"
+do_populate_sdk[dirs] = "${TOPDIR} ${PKGDATA_DIR}"
do_populate_sdk[depends] += "${@' '.join([x + ':do_populate_sysroot' for x in d.getVar('SDK_DEPENDS', True).split()])} ${@d.getVarFlag('do_rootfs', 'depends', False)}"
do_populate_sdk[rdepends] = "${@' '.join([x + ':do_populate_sysroot' for x in d.getVar('SDK_RDEPENDS', True).split()])}"
do_populate_sdk[recrdeptask] += "do_packagedata do_package_write_rpm do_package_write_ipk do_package_write_deb"
--
2.4.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/5] mtools_4.0.18.bb: Use create_wrapper() for mcopy
2015-10-23 3:30 [PATCH 0/5] Fix live images when using the extensible sdk Randy Witt
` (2 preceding siblings ...)
2015-10-23 3:30 ` [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists Randy Witt
@ 2015-10-23 3:30 ` Randy Witt
2015-10-23 3:30 ` [PATCH 5/5] wic/utils/oe/misc.py: Preserve PATH when running native tools Randy Witt
4 siblings, 0 replies; 8+ messages in thread
From: Randy Witt @ 2015-10-23 3:30 UTC (permalink / raw)
To: openembedded-core
mcopy uses the IBM850 codepage from gconv. The default install location
for gconv will not match the actual install location since it can be
pulled from sstate. This patch overrides the default location when
running by adding GCONV_PATH to the environment for mcopy.
[YOCTO #7629]
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
---
meta/recipes-devtools/mtools/mtools_4.0.18.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-devtools/mtools/mtools_4.0.18.bb b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
index 52decfd..24c9d49 100644
--- a/meta/recipes-devtools/mtools/mtools_4.0.18.bb
+++ b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
@@ -45,3 +45,8 @@ do_install_prepend () {
mkdir -p ${D}/${bindir}
mkdir -p ${D}/${datadir}
}
+
+do_install_append_class-native () {
+ create_wrapper ${D}${bindir}/mcopy \
+ GCONV_PATH=${libdir}/gconv
+}
--
2.4.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 5/5] wic/utils/oe/misc.py: Preserve PATH when running native tools
2015-10-23 3:30 [PATCH 0/5] Fix live images when using the extensible sdk Randy Witt
` (3 preceding siblings ...)
2015-10-23 3:30 ` [PATCH 4/5] mtools_4.0.18.bb: Use create_wrapper() for mcopy Randy Witt
@ 2015-10-23 3:30 ` Randy Witt
4 siblings, 0 replies; 8+ messages in thread
From: Randy Witt @ 2015-10-23 3:30 UTC (permalink / raw)
To: openembedded-core
Previously exec_native_cmd() would remove all items from PATH except for
the native sysroot. This can cause issues for the tools that are created
using create_wrapper().
Now instead of wiping out the PATH, run a sanity check to check if the
command is in the native sysroot.
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
---
scripts/lib/wic/utils/oe/misc.py | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 7370d93..c6d2e5f 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -82,6 +82,12 @@ def exec_cmd(cmd_and_args, as_shell=False, catch=3):
return out
+def cmd_in_path(cmd, path):
+ import scriptpath
+
+ scriptpath.add_bitbake_lib_path()
+
+ return bb.utils.which(path, cmd) != "" or False
def exec_native_cmd(cmd_and_args, native_sysroot, catch=3):
"""
@@ -92,15 +98,21 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3):
Always need to execute native commands as_shell
"""
native_paths = \
- "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin" % \
+ "%s/sbin:%s/usr/sbin:%s/usr/bin" % \
(native_sysroot, native_sysroot, native_sysroot)
- native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
+ native_cmd_and_args = "export PATH=%s:$PATH;%s" % \
+ (native_paths, cmd_and_args)
msger.debug("exec_native_cmd: %s" % cmd_and_args)
- args = cmd_and_args.split()
+ # The reason -1 is used is because there may be "export" commands.
+ args = cmd_and_args.split(';')[-1].split()
msger.debug(args)
- ret, out = _exec_cmd(native_cmd_and_args, True, catch)
+ # If the command isn't in the native sysroot say we failed.
+ if cmd_in_path(args[0], native_paths):
+ ret, out = _exec_cmd(native_cmd_and_args, True, catch)
+ else:
+ ret = 127
if ret == 127: # shell command-not-found
prog = args[0]
--
2.4.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists
2015-10-23 3:30 ` [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists Randy Witt
@ 2015-10-23 4:11 ` Christopher Larson
2015-10-23 6:41 ` Richard Purdie
0 siblings, 1 reply; 8+ messages in thread
From: Christopher Larson @ 2015-10-23 4:11 UTC (permalink / raw)
To: Randy Witt; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
On Thu, Oct 22, 2015 at 8:30 PM, Randy Witt <randy.e.witt@linux.intel.com>
wrote:
> -do_populate_sdk[dirs] = "${TOPDIR}"
> +do_populate_sdk[dirs] = "${TOPDIR} ${PKGDATA_DIR}"
>
I hope do_populate_sdk doesn't care where it's run from, as this doesn't
just make sure the dir exists, it changes the dir the task runs in (the
last entry in dirs is the cwd of the task).
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
[-- Attachment #2: Type: text/html, Size: 964 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists
2015-10-23 4:11 ` Christopher Larson
@ 2015-10-23 6:41 ` Richard Purdie
0 siblings, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2015-10-23 6:41 UTC (permalink / raw)
To: Christopher Larson; +Cc: Patches and discussions about the oe-core layer
On Thu, 2015-10-22 at 21:11 -0700, Christopher Larson wrote:
> On Thu, Oct 22, 2015 at 8:30 PM, Randy Witt
> <randy.e.witt@linux.intel.com> wrote:
> -do_populate_sdk[dirs] = "${TOPDIR}"
> +do_populate_sdk[dirs] = "${TOPDIR} ${PKGDATA_DIR}"
>
> I hope do_populate_sdk doesn't care where it's run from, as this
> doesn't just make sure the dir exists, it changes the dir the task
> runs in (the last entry in dirs is the cwd of the task).
I was trying to remember which way around that was and planned to check
before merging. I agree this needs to be reversed (and the commit needs
a touch more explanation). I'll tweak that.
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-10-23 6:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 3:30 [PATCH 0/5] Fix live images when using the extensible sdk Randy Witt
2015-10-23 3:30 ` [PATCH 1/5] Add 850 codepage to uninative-tarball Randy Witt
2015-10-23 3:30 ` [PATCH 2/5] scripts/oe-pkgdata-util: Fix variable name in error handling Randy Witt
2015-10-23 3:30 ` [PATCH 3/5] populate_sdk_base: Ensure PKGDATA_DIR exists Randy Witt
2015-10-23 4:11 ` Christopher Larson
2015-10-23 6:41 ` Richard Purdie
2015-10-23 3:30 ` [PATCH 4/5] mtools_4.0.18.bb: Use create_wrapper() for mcopy Randy Witt
2015-10-23 3:30 ` [PATCH 5/5] wic/utils/oe/misc.py: Preserve PATH when running native tools Randy Witt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.