summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 8a80a563f0..b28413b8f5 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -173,6 +173,17 @@ install_tools() {
173 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH} 173 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH}
174} 174}
175 175
176# Since bitbake won't run as root it doesn't make sense to try and install
177# the extensible sdk as root.
178sdk_ext_preinst() {
179 if [ "`id -u`" = "0" ]; then
180 echo "ERROR: The extensible sdk cannot be installed as root."
181 exit 1
182 fi
183 SDK_EXTENSIBLE="1"
184}
185SDK_PRE_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_preinst}"
186
176# FIXME this preparation should be done as part of the SDK construction 187# FIXME this preparation should be done as part of the SDK construction
177sdk_ext_postinst() { 188sdk_ext_postinst() {
178 printf "\nExtracting buildtools...\n" 189 printf "\nExtracting buildtools...\n"