poky/scripts
Patrick Ohly d81ee4d277 combo-layer: clean up dest_dir checking
Empty dest_dir is basically undocumented behavior. The sample conf
only mentions using just a dot for the current directory. In practice,
the empty string does not work because of code like this:

def action_splitpatch(conf, args):
    ...
        if dest_dir != ".":
            filerange_root = '%s -x "%s/*"' % (filerange_root, dest_dir)

However, the empty string was not explicitly checked for, leading to
strange errors when trying to apply patches:

[12:50:23] Applying: foobar: xyz
fatal: unable to stat newly created file '/foobar': No such file or directory

This patch turns the empty string into an alias for the dot. This seems
more user-friendly than throwing an error. This alias is intentionally
not document in the sample conf, because the dot is clearer and works also
with older copies of combo-layer.

Instead of checking for both all the time and normalizing the path when
needed (as done in some places), rewrite the value in sanity_check()
and then only check for '.'.

(From OE-Core rev: a8547b3c2c0b8bf3150043b1b6570f0d44b20335)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31 22:24:34 +01:00
..
contrib Python: Upgrade from 2.7.3 to 2.7.9: 2015-02-23 17:35:29 +00:00
jhbuild
lib yocto-bsp: Update templates to 3.19 kernel 2015-03-24 10:06:03 +00:00
native-intercept
postinst-intercepts postinst_intercept script: drop pipe 2015-03-22 14:42:16 +00:00
pybootchartgui scripts: use '/usr/bin/env' in shebangs with python 2014-11-12 15:38:29 +00:00
tiny scripts: Add ksize.py and dirsize.py 2013-10-29 10:41:39 +00:00
bitbake-prserv-tool bitbake-prserv-tool: make help text show .conf suffix 2014-02-17 15:37:17 +00:00
bitbake-whatchanged scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
buildhistory-collect-srcrevs buildhistory-collect-srcrevs: match new buildhistory-diff command line parsing 2013-08-16 11:44:17 +01:00
buildhistory-diff scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
cleanup-workdir cleanup-workdir: Fix crosssdk reference after addition of PN 2014-05-05 09:05:42 +01:00
combo-layer combo-layer: clean up dest_dir checking 2015-03-31 22:24:34 +01:00
combo-layer-hook-default.sh combo-layer-hook-default.sh: handle patches without Signed-off-by 2015-03-20 11:21:25 +00:00
combo-layer.conf.example combo-layer: partial import for '--history init' 2015-03-20 11:21:24 +00:00
cp-noerror scripts/cp-noerror: Avoid a race 2014-02-02 11:23:45 +00:00
create-pull-request create-pull-request: fix git GIT_VERSION 2015-03-10 10:47:46 +00:00
create-recipe scripts/create-recipe: minor fixes 2014-09-03 11:09:03 +01:00
crosstap
devtool devtool: improve command-line help 2015-02-08 08:00:27 +00:00
gen-lockedsig-cache gen-lockedsig-cache: Allow cross-filesystem copies. 2015-02-24 17:41:42 +00:00
gen-site-config
hob
lnr scripts: add lnr (link relative) 2014-03-07 14:58:45 +00:00
multilib_header_wrapper.h
oe-buildenv-internal scripts/oe-buildenv-internal: add means of skipping SDK check during setup 2015-02-24 17:41:43 +00:00
oe-find-native-sysroot
oe-git-proxy oe-git-proxy: Redirect error messages to STDERR 2015-03-31 22:24:33 +01:00
oe-pkgdata-util lib/oe/package_manager: support exclusion from complementary glob process by regex 2015-02-17 14:20:45 +00:00
oe-selftest scripts/oe-selftest: add command line option to list test classes 2015-02-08 08:00:27 +00:00
oe-setup-builddir oe-setup-builddir: output message cleanup 2015-03-16 17:41:52 +00:00
oe-setup-rpmrepo oe-setup-rpmrepo: add native sysroot so nativepython can be found by env 2013-08-30 18:06:31 +01:00
oe-trim-schemas
oepydevshell-internal.py devshell: Add interactive python shell 2014-05-28 08:27:00 +01:00
opkg-query-helper.py classes/image: write image manifest 2013-11-26 23:01:32 +00:00
pythondeps recipetool: add python dependency scanning support 2015-01-23 11:36:28 +00:00
README
recipetool recipetool: improve command-line help 2015-02-08 08:00:27 +00:00
relocate_sdk.py relocate_sdk: Skip to do relocation if the file size is less than 64 byte 2014-06-17 08:59:21 +01:00
rootfs_rpm-extract-postinst.awk
rpm2cpio.sh
runqemu scripts/runqemu: Allow FSTYPE to be changed from the environment 2015-03-20 11:03:49 +00:00
runqemu-addptable2image
runqemu-export-rootfs runqemu-export-rootfs: Fix missing # in comment 2014-02-20 12:04:44 +00:00
runqemu-extract-sdk runqemu-extract-sdk: normalize paths to improve output 2014-07-03 17:41:16 +01:00
runqemu-gen-tapdevs
runqemu-ifdown runqemu-ifdown: clean up the remaining iptables rules 2013-08-30 16:23:47 +01:00
runqemu-ifup runqemu-ifup: when tunctl can't be found, say what package builds it 2013-08-26 11:47:17 +01:00
runqemu-internal runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images 2015-03-20 11:03:50 +00:00
runqemu.README
send-error-report scripts/send-error-report: Rework script to support new features 2015-03-10 10:47:38 +00:00
send-pull-request
sstate-cache-management.sh sstate-cache-management: Minor cleanup of help text 2014-04-29 17:20:11 +01:00
sstate-diff-machines.sh sstate-diff-machines.sh: Return non-zero return code when there was some failure detected 2014-06-29 09:04:22 +01:00
sstate-sysroot-cruft.sh sstate-sysroot-cruft.sh: Improve to use it from CI 2014-08-11 12:30:51 +01:00
swabber-strace-attach
sysroot-relativelinks.py image/populate_sdk: Ensure symlinks in target sysroot are relative 2013-09-11 11:05:05 +01:00
test-dependencies.sh test-dependencies.sh: strip only .bb suffix 2015-03-16 17:41:52 +00:00
test-reexec
test-remote-image scripts/test-remote-image: use the scriptpath module 2014-07-19 00:09:01 +01:00
wic wic: Remove special-case bootimg_dir 2014-10-30 13:03:41 +00:00
wipe-sysroot wipe-sysroot: explain what is being deleted, and check for arguments 2014-01-02 13:08:40 +00:00
yocto-bsp
yocto-kernel
yocto-layer

This directory contains Various useful scripts for working with OE builds