- solve xorg-x11-proto-core.
authorRonan Le Martret <ronan@fridu.net>
Tue, 9 Apr 2013 14:28:43 +0000 (16:28 +0200)
committerRonan Le Martret <ronan@fridu.net>
Tue, 9 Apr 2013 14:28:43 +0000 (16:28 +0200)
Tizen_TZ_package/spec2yocto.py
meta-tizen-ivi/classes/tizenBuildUtils.bbclass
meta-tizen-ivi/recipes-tizen/xorg-x11-proto-core/xorg-x11-proto-core-extraconf.inc

index 305bd3f..cf2d8a2 100755 (executable)
@@ -228,8 +228,10 @@ class specParser:
             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' "
index a532b9b..eb1d234 100644 (file)
@@ -69,6 +69,7 @@ do_install_prepend () {
  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