macroPath+=os.path.join("/usr/share/spec2yocto/macro",dir)+" "
command += " --macros=\"%s\" " % macroPath
-
- command += " --define='buildroot ${D}' "
+ if (self.__packagePN is not None) and (self.__packagePN.endswith("-native")):
+ command += " --define='buildroot ${D}${STAGING_DIR}/${HOST_SYS}' "
+ else:
+ command += " --define='buildroot ${D}' "
command += " --define='setup #setup' "
command += " --define='setup0 #setup0' "
echo export HOST_SYS=${HOST_SYS} >> ${S}/../temp/Bash_install
if [[ ${PN} =~ "-native" ]];
then
+ echo export STAGING_DIR=${STAGING_DIR} >> ${S}/../temp/Bash_install
echo export RPM_BUILD_ROOT=${D}${STAGING_DIR}/${HOST_SYS} >> ${S}/../temp/Bash_install
else
echo export RPM_BUILD_ROOT=${D} >> ${S}/../temp/Bash_install