summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/kernel-yocto.bbclass38
-rw-r--r--meta/classes-recipe/kernel.bbclass4
-rw-r--r--meta/classes-recipe/ptest.bbclass4
-rw-r--r--meta/lib/oe/patch.py8
-rw-r--r--scripts/lib/recipetool/append.py6
5 files changed, 30 insertions, 30 deletions
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass
index 9a86616dad..6468e8aa90 100644
--- a/meta/classes-recipe/kernel-yocto.bbclass
+++ b/meta/classes-recipe/kernel-yocto.bbclass
@@ -63,7 +63,7 @@ def find_sccs(d):
63 return sources_list 63 return sources_list
64 64
65# check the SRC_URI for "kmeta" type'd git repositories. Return the name of 65# check the SRC_URI for "kmeta" type'd git repositories. Return the name of
66# the repository as it will be found in WORKDIR 66# the repository as it will be found in UNPACKDIR
67def find_kernel_feature_dirs(d): 67def find_kernel_feature_dirs(d):
68 feature_dirs=[] 68 feature_dirs=[]
69 fetch = bb.fetch2.Fetch([], d) 69 fetch = bb.fetch2.Fetch([], d)
@@ -147,24 +147,24 @@ do_kernel_metadata() {
147 # from the source tree, into a common location and normalized "defconfig" name, 147 # from the source tree, into a common location and normalized "defconfig" name,
148 # where the rest of the process will include and incoroporate it into the build 148 # where the rest of the process will include and incoroporate it into the build
149 # 149 #
150 # If the fetcher has already placed a defconfig in WORKDIR (from the SRC_URI), 150 # If the fetcher has already placed a defconfig in UNPACKDIR (from the SRC_URI),
151 # we don't overwrite it, but instead warn the user that SRC_URI defconfigs take 151 # we don't overwrite it, but instead warn the user that SRC_URI defconfigs take
152 # precendence. 152 # precendence.
153 # 153 #
154 if [ -n "${KBUILD_DEFCONFIG}" ]; then 154 if [ -n "${KBUILD_DEFCONFIG}" ]; then
155 if [ -f "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" ]; then 155 if [ -f "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" ]; then
156 if [ -f "${WORKDIR}/defconfig" ]; then 156 if [ -f "${UNPACKDIR}/defconfig" ]; then
157 # If the two defconfig's are different, warn that we overwrote the 157 # If the two defconfig's are different, warn that we overwrote the
158 # one already placed in WORKDIR 158 # one already placed in UNPACKDIR
159 cmp "${WORKDIR}/defconfig" "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" 159 cmp "${UNPACKDIR}/defconfig" "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}"
160 if [ $? -ne 0 ]; then 160 if [ $? -ne 0 ]; then
161 bbdebug 1 "detected SRC_URI or unpatched defconfig in WORKDIR. ${KBUILD_DEFCONFIG} copied over it" 161 bbdebug 1 "detected SRC_URI or unpatched defconfig in UNPACKDIR. ${KBUILD_DEFCONFIG} copied over it"
162 fi 162 fi
163 cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${WORKDIR}/defconfig 163 cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig
164 else 164 else
165 cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${WORKDIR}/defconfig 165 cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig
166 fi 166 fi
167 in_tree_defconfig="${WORKDIR}/defconfig" 167 in_tree_defconfig="${UNPACKDIR}/defconfig"
168 else 168 else
169 bbfatal "A KBUILD_DEFCONFIG '${KBUILD_DEFCONFIG}' was specified, but not present in the source tree (${S}/arch/${ARCH}/configs/)" 169 bbfatal "A KBUILD_DEFCONFIG '${KBUILD_DEFCONFIG}' was specified, but not present in the source tree (${S}/arch/${ARCH}/configs/)"
170 fi 170 fi
@@ -178,7 +178,7 @@ do_kernel_metadata() {
178 patches="${@" ".join(find_patches(d,'kernel-meta'))}" 178 patches="${@" ".join(find_patches(d,'kernel-meta'))}"
179 if [ -n "$patches" ]; then 179 if [ -n "$patches" ]; then
180 ( 180 (
181 cd ${WORKDIR}/kernel-meta 181 cd ${UNPACKDIR}/kernel-meta
182 182
183 # take the SRC_URI patches, and create a series file 183 # take the SRC_URI patches, and create a series file
184 # this is required to support some better processing 184 # this is required to support some better processing
@@ -193,11 +193,11 @@ do_kernel_metadata() {
193 # handling the rest of the kernel. This allows us 193 # handling the rest of the kernel. This allows us
194 # more flexibility for handling failures or advanced 194 # more flexibility for handling failures or advanced
195 # mergeing functinoality 195 # mergeing functinoality
196 message=$(kgit-s2q --gen -v --patches ${WORKDIR}/kernel-meta 2>&1) 196 message=$(kgit-s2q --gen -v --patches ${UNPACKDIR}/kernel-meta 2>&1)
197 if [ $? -ne 0 ]; then 197 if [ $? -ne 0 ]; then
198 # setup to try the patch again 198 # setup to try the patch again
199 kgit-s2q --prev 199 kgit-s2q --prev
200 bberror "Problem applying patches to: ${WORKDIR}/kernel-meta" 200 bberror "Problem applying patches to: ${UNPACKDIR}/kernel-meta"
201 bbfatal_log "\n($message)" 201 bbfatal_log "\n($message)"
202 fi 202 fi
203 ) 203 )
@@ -232,12 +232,12 @@ do_kernel_metadata() {
232 # SRC_URI. If they were supplied, we convert them into include directives 232 # SRC_URI. If they were supplied, we convert them into include directives
233 # for the update part of the process 233 # for the update part of the process
234 for f in ${feat_dirs}; do 234 for f in ${feat_dirs}; do
235 if [ -d "${WORKDIR}/$f/kernel-meta" ]; then 235 if [ -d "${UNPACKDIR}/$f/kernel-meta" ]; then
236 includes="$includes -I${WORKDIR}/$f/kernel-meta" 236 includes="$includes -I${UNPACKDIR}/$f/kernel-meta"
237 elif [ -d "${WORKDIR}/../oe-local-files/$f" ]; then 237 elif [ -d "${UNPACKDIR}/../oe-local-files/$f" ]; then
238 includes="$includes -I${WORKDIR}/../oe-local-files/$f" 238 includes="$includes -I${UNPACKDIR}/../oe-local-files/$f"
239 elif [ -d "${WORKDIR}/$f" ]; then 239 elif [ -d "${UNPACKDIR}/$f" ]; then
240 includes="$includes -I${WORKDIR}/$f" 240 includes="$includes -I${UNPACKDIR}/$f"
241 fi 241 fi
242 done 242 done
243 for s in ${sccs} ${patches}; do 243 for s in ${sccs} ${patches}; do
@@ -460,7 +460,7 @@ do_kernel_configme() {
460 config_flags="" 460 config_flags=""
461 ;; 461 ;;
462 *) 462 *)
463 if [ -f ${WORKDIR}/defconfig ]; then 463 if [ -f ${UNPACKDIR}/defconfig ]; then
464 config_flags="-n" 464 config_flags="-n"
465 fi 465 fi
466 ;; 466 ;;
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index c0a2056fec..d6eedf942c 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -679,8 +679,8 @@ kernel_do_configure() {
679 679
680 # Copy defconfig to .config if .config does not exist. This allows 680 # Copy defconfig to .config if .config does not exist. This allows
681 # recipes to manage the .config themselves in do_configure:prepend(). 681 # recipes to manage the .config themselves in do_configure:prepend().
682 if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then 682 if [ -f "${UNPACKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
683 cp "${WORKDIR}/defconfig" "${B}/.config" 683 cp "${UNPACKDIR}/defconfig" "${B}/.config"
684 fi 684 fi
685 685
686 ${KERNEL_CONFIG_COMMAND} 686 ${KERNEL_CONFIG_COMMAND}
diff --git a/meta/classes-recipe/ptest.bbclass b/meta/classes-recipe/ptest.bbclass
index 348d729aef..0941572f8f 100644
--- a/meta/classes-recipe/ptest.bbclass
+++ b/meta/classes-recipe/ptest.bbclass
@@ -53,8 +53,8 @@ do_install_ptest() {
53} 53}
54 54
55do_install_ptest_base() { 55do_install_ptest_base() {
56 if [ -f ${WORKDIR}/run-ptest ]; then 56 if [ -f ${UNPACKDIR}/run-ptest ]; then
57 install -D ${WORKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest 57 install -D ${UNPACKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest
58 fi 58 fi
59 59
60 grep -q install-ptest: Makefile 2>/dev/null && oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest 60 grep -q install-ptest: Makefile 2>/dev/null && oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 60a0cc8291..58c6e34fe8 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -882,7 +882,7 @@ class UserResolver(Resolver):
882 os.chdir(olddir) 882 os.chdir(olddir)
883 883
884 884
885def patch_path(url, fetch, workdir, expand=True): 885def patch_path(url, fetch, unpackdir, expand=True):
886 """Return the local path of a patch, or return nothing if this isn't a patch""" 886 """Return the local path of a patch, or return nothing if this isn't a patch"""
887 887
888 local = fetch.localpath(url) 888 local = fetch.localpath(url)
@@ -891,7 +891,7 @@ def patch_path(url, fetch, workdir, expand=True):
891 base, ext = os.path.splitext(os.path.basename(local)) 891 base, ext = os.path.splitext(os.path.basename(local))
892 if ext in ('.gz', '.bz2', '.xz', '.Z'): 892 if ext in ('.gz', '.bz2', '.xz', '.Z'):
893 if expand: 893 if expand:
894 local = os.path.join(workdir, base) 894 local = os.path.join(unpackdir, base)
895 ext = os.path.splitext(base)[1] 895 ext = os.path.splitext(base)[1]
896 896
897 urldata = fetch.ud[url] 897 urldata = fetch.ud[url]
@@ -905,12 +905,12 @@ def patch_path(url, fetch, workdir, expand=True):
905 return local 905 return local
906 906
907def src_patches(d, all=False, expand=True): 907def src_patches(d, all=False, expand=True):
908 workdir = d.getVar('WORKDIR') 908 unpackdir = d.getVar('UNPACKDIR')
909 fetch = bb.fetch2.Fetch([], d) 909 fetch = bb.fetch2.Fetch([], d)
910 patches = [] 910 patches = []
911 sources = [] 911 sources = []
912 for url in fetch.urls: 912 for url in fetch.urls:
913 local = patch_path(url, fetch, workdir, expand) 913 local = patch_path(url, fetch, unpackdir, expand)
914 if not local: 914 if not local:
915 if all: 915 if all:
916 local = fetch.localpath(url) 916 local = fetch.localpath(url)
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 341e893305..10945d6008 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -101,7 +101,7 @@ def determine_file_source(targetpath, rd):
101 import oe.recipeutils 101 import oe.recipeutils
102 102
103 # See if it's in do_install for the recipe 103 # See if it's in do_install for the recipe
104 workdir = rd.getVar('WORKDIR') 104 unpackdir = rd.getVar('UNPACKDIR')
105 src_uri = rd.getVar('SRC_URI') 105 src_uri = rd.getVar('SRC_URI')
106 srcfile = '' 106 srcfile = ''
107 modpatches = [] 107 modpatches = []
@@ -113,9 +113,9 @@ def determine_file_source(targetpath, rd):
113 if not srcpath.startswith('/'): 113 if not srcpath.startswith('/'):
114 # Handle non-absolute path 114 # Handle non-absolute path
115 srcpath = os.path.abspath(os.path.join(rd.getVarFlag('do_install', 'dirs').split()[-1], srcpath)) 115 srcpath = os.path.abspath(os.path.join(rd.getVarFlag('do_install', 'dirs').split()[-1], srcpath))
116 if srcpath.startswith(workdir): 116 if srcpath.startswith(unpackdir):
117 # OK, now we have the source file name, look for it in SRC_URI 117 # OK, now we have the source file name, look for it in SRC_URI
118 workdirfile = os.path.relpath(srcpath, workdir) 118 workdirfile = os.path.relpath(srcpath, unpackdir)
119 # FIXME this is where we ought to have some code in the fetcher, because this is naive 119 # FIXME this is where we ought to have some code in the fetcher, because this is naive
120 for item in src_uri.split(): 120 for item in src_uri.split():
121 localpath = bb.fetch2.localpath(item, rd) 121 localpath = bb.fetch2.localpath(item, rd)