diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-10 23:01:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-11 23:00:52 +0100 |
commit | 54e8f89ef0ad51c4448af12d3a320c1550bdc310 (patch) | |
tree | b7a80a557bb298495435ae402c633447eda79191 /meta/recipes-devtools | |
parent | aa26842ec3d25094636979a3283f2236c582b747 (diff) | |
download | poky-54e8f89ef0ad51c4448af12d3a320c1550bdc310.tar.gz |
pseudo: Add uninative configuration sanity check
When building pseudo-native to work with uninative, we need to ensure the
configuration will work on all supported target systems. This means
"new clone" semantics, xattr and statvfs support in particular. It is
extremely unlikely we'd run on a system without any of these but add
a check just to be sure when uninative is enabled.
(From OE-Core rev: ea5b208ee25752bea6037cd0f3b28da7d2c9905e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/pseudo/pseudo.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc index 65d6e5068d..e6512bc6e6 100644 --- a/meta/recipes-devtools/pseudo/pseudo.inc +++ b/meta/recipes-devtools/pseudo/pseudo.inc | |||
@@ -112,6 +112,19 @@ do_compile_prepend_class-nativesdk () { | |||
112 | fi | 112 | fi |
113 | } | 113 | } |
114 | 114 | ||
115 | do_compile_append_class-native () { | ||
116 | if [ '${@bb.data.inherits_class('uninative', d)}' = 'True' ]; then | ||
117 | for i in PSEUDO_PORT_UNIX_SYNCFS PSEUDO_PORT_UIDS_GENERIC PSEUDO_PORT_LINUX_NEWCLONE PSEUDO_PORT_LINUX_XATTR PSEUDO_PORT_LINUX_STATVFS; do | ||
118 | grep $i.1 ${S}/pseudo_ports.h | ||
119 | if [ $? != 0 ]; then | ||
120 | echo "$i not enabled in pseudo which is incompatible with uninative" | ||
121 | exit 1 | ||
122 | fi | ||
123 | done | ||
124 | fi | ||
125 | } | ||
126 | |||
127 | |||
115 | do_install () { | 128 | do_install () { |
116 | oe_runmake 'DESTDIR=${D}' ${MAKEOPTS} 'LIB=lib/pseudo/lib$(MARK64)' install | 129 | oe_runmake 'DESTDIR=${D}' ${MAKEOPTS} 'LIB=lib/pseudo/lib$(MARK64)' install |
117 | } | 130 | } |