BUILD: Passed --dist option when building a project if rootstrap has
authordonghyuk.yang <donghyuk.yang@samsung.com>
Thu, 1 May 2014 01:15:32 +0000 (10:15 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Thu, 1 May 2014 01:15:32 +0000 (10:15 +0900)
local repository

If rootstrap is created based on local repository, "--dist" option
should be used when building a platform project

Change-Id: Icb9d008cbf9827d5e355a483a14b18a03fb45de8
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/gbs/GBSBuildCommandProvider.java

index 364bbc2..ad925d5 100644 (file)
@@ -58,6 +58,7 @@ public class GBSBuildCommandProvider implements IBuildCommandProvider {
     public static final String DEFINE_OP = "--define";
     public static final String BUILDROOT_OP = "--buildroot";
     public static final String EXTRAPKG_OP = "--extra-packs";
+    public static final String DIST_OP = "--dist";
 
     public GBSBuildCommandProvider(IConfiguration config) {
         this.config = config;
@@ -89,6 +90,9 @@ public class GBSBuildCommandProvider implements IBuildCommandProvider {
         for (String op : PlatformConfigurationManager.getGBSOptions(config)) {
             args.add(op);
         }
+        if (rt.getConfFile() != null) {
+            args.add(String.format("%s=%s", DIST_OP, rt.getConfFile().toString()));
+        }
         args.add(DEFINE_OP);
         ICConfigurationDescription cfgDes = ManagedBuildManager.getDescriptionForConfiguration(config);
         IEnvironmentVariableManager mngr = CCorePlugin.getDefault().getBuildEnvironmentManager();