summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-06 09:57:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-07 21:54:11 +0100
commit23d95eb65604bc05a730a461bafe26594bbe5e46 (patch)
tree33ccc1f58998d71923d759f37701f24d74494053
parent8914bc77b4381793ee3b144b22b1f46215a37d31 (diff)
downloadpoky-23d95eb65604bc05a730a461bafe26594bbe5e46.tar.gz
utils: Drop obsolete oe_machinstall function
This function does something similar to the bitbake fetcher file search paths and is an old remnant of how this could have once been handled. There are no users in OE-Core and we'd always prefer the fetcher to handle this now as it handles signatures correctly. The direct OVERRIDES reference would likely break any user of the function. Remove it to be safe and ensure it isn't being used anywhere. (From OE-Core rev: d49ba0243e3d28672d16cd02753eb7e85d91bbab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/utils.bbclass30
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index ab06019560..b4eb3d38ab 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -154,36 +154,6 @@ oe_libinstall() {
154 __runcmd cd "$olddir" 154 __runcmd cd "$olddir"
155} 155}
156 156
157oe_machinstall() {
158 # Purpose: Install machine dependent files, if available
159 # If not available, check if there is a default
160 # If no default, just touch the destination
161 # Example:
162 # $1 $2 $3 $4
163 # oe_machinstall -m 0644 fstab ${D}/etc/fstab
164 #
165 # TODO: Check argument number?
166 #
167 filename=`basename $3`
168 dirname=`dirname $3`
169
170 for o in `echo ${OVERRIDES} | tr ':' ' '`; do
171 if [ -e $dirname/$o/$filename ]; then
172 bbnote $dirname/$o/$filename present, installing to $4
173 install $1 $2 $dirname/$o/$filename $4
174 return
175 fi
176 done
177# bbnote overrides specific file NOT present, trying default=$3...
178 if [ -e $3 ]; then
179 bbnote $3 present, installing to $4
180 install $1 $2 $3 $4
181 else
182 bbnote $3 NOT present, touching empty $4
183 touch $4
184 fi
185}
186
187create_cmdline_wrapper () { 157create_cmdline_wrapper () {
188 # Create a wrapper script where commandline options are needed 158 # Create a wrapper script where commandline options are needed
189 # 159 #