diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-08-13 16:47:45 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-08-31 01:20:29 -0700 |
commit | 79d2f256d4f2d6fe290e19174cf448662261e1d1 (patch) | |
tree | e05699a8fdcc885c6b3ab04d7df362876cdf98c7 /build.ninja.in | |
parent | 27807b5415d4687d139651284c39d3bfbc221f7b (diff) | |
download | build_soong-79d2f256d4f2d6fe290e19174cf448662261e1d1.tar.gz build_soong-79d2f256d4f2d6fe290e19174cf448662261e1d1.tar.bz2 build_soong-79d2f256d4f2d6fe290e19174cf448662261e1d1.zip |
Simplify bootstrapping
Follow changes from https://github.com/google/blueprint/pull/121
Change-Id: Icc5003f6e8592a667e1ce5e58361c03997078763
Diffstat (limited to 'build.ninja.in')
-rw-r--r-- | build.ninja.in | 78 |
1 files changed, 15 insertions, 63 deletions
diff --git a/build.ninja.in b/build.ninja.in index 0122a20c..ec1bc0d0 100644 --- a/build.ninja.in +++ b/build.ninja.in @@ -15,10 +15,6 @@ g.bootstrap.BinDir = ${g.bootstrap.buildDir}/.bootstrap/bin g.bootstrap.bootstrapCmd = @@Bootstrap@@ -g.bootstrap.bootstrapManifest = @@BootstrapManifest@@ - -g.bootstrap.chooseStageCmd = ${g.bootstrap.buildDir}/.bootstrap/bin/choosestage - g.bootstrap.compileCmd = @@GoCompile@@ g.bootstrap.goRoot = @@GoRoot@@ @@ -38,10 +34,6 @@ rule g.bootstrap.bootstrap description = bootstrap ${in} generator = true -rule g.bootstrap.chooseStage - command = ${g.bootstrap.chooseStageCmd} --current ${current} --bootstrap ${g.bootstrap.bootstrapManifest} -o ${out} ${in} - description = choosing next stage - rule g.bootstrap.compile command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.compileCmd} -o ${out} -p ${pkgPath} -complete ${incFlags} -pack ${in} description = compile ${out} @@ -421,30 +413,6 @@ default $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -# Module: choosestage -# Variant: -# Type: bootstrap_core_go_binary -# Factory: github.com/google/blueprint/bootstrap.newGoBinaryModuleFactory.func1 -# Defined: build/blueprint/Blueprints:145:1 - -build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a: $ - g.bootstrap.compile $ - ${g.bootstrap.srcDir}/build/blueprint/choosestage/choosestage.go | $ - ${g.bootstrap.compileCmd} - pkgPath = choosestage -default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a - -build ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out: $ - g.bootstrap.link $ - ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/choosestage.a | $ - ${g.bootstrap.linkCmd} -default ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out - -build ${g.bootstrap.BinDir}/choosestage: g.bootstrap.cp $ - ${g.bootstrap.buildDir}/.bootstrap/choosestage/obj/a.out -default ${g.bootstrap.BinDir}/choosestage - -# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Module: gotestmain # Variant: # Type: bootstrap_core_go_binary @@ -529,53 +497,37 @@ default ${g.bootstrap.BinDir}/minibp # Factory: github.com/google/blueprint/bootstrap.newSingletonFactory.func1 rule s.bootstrap.primarybp - command = ${g.bootstrap.BinDir}/minibp --build-primary ${runTests} -m ${g.bootstrap.bootstrapManifest} --timestamp ${timestamp} --timestampdep ${timestampdep} -b ${g.bootstrap.buildDir} -d ${outfile}.d -o ${outfile} ${in} + command = ${g.bootstrap.BinDir}/minibp --build-primary ${runTests} -b ${g.bootstrap.buildDir} -d ${outfile}.d -o ${outfile} ${in} depfile = ${outfile}.d description = minibp ${outfile} rule s.bootstrap.minibp - command = ${g.bootstrap.BinDir}/minibp ${runTests} -m ${g.bootstrap.bootstrapManifest} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in} + command = ${g.bootstrap.BinDir}/minibp ${runTests} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in} depfile = ${out}.d description = minibp ${out} - generator = true + restat = true -build ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $ - ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp: $ - s.bootstrap.primarybp ${g.bootstrap.srcDir}/Android.bp | $ - ${g.bootstrap.BinDir}/choosestage ${g.bootstrap.BinDir}/gotestmain $ +build ${g.bootstrap.buildDir}/.bootstrap/build.ninja: s.bootstrap.primarybp $ + ${g.bootstrap.srcDir}/Android.bp | ${g.bootstrap.BinDir}/gotestmain $ ${g.bootstrap.BinDir}/gotestrunner ${g.bootstrap.BinDir}/minibp $ ${g.bootstrap.srcDir}/Android.bp $ ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/github.com/google/blueprint/proptools.a - outfile = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in + outfile = ${g.bootstrap.buildDir}/.bootstrap/build.ninja runTests = -t - timestamp = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp - timestampdep = ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp.d -default ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in $ - ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in.timestamp +default ${g.bootstrap.buildDir}/.bootstrap/build.ninja -build ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in: $ +build ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in: $ s.bootstrap.minibp ${g.bootstrap.srcDir}/Android.bp | $ - ${g.bootstrap.bootstrapManifest} ${g.bootstrap.BinDir}/minibp + ${g.bootstrap.BinDir}/minibp runTests = -t -default ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in - -build ${g.bootstrap.buildDir}/.bootstrap/notAFile: phony -default ${g.bootstrap.buildDir}/.bootstrap/notAFile - -build ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in: $ - g.bootstrap.chooseStage $ - ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in $ - ${g.bootstrap.buildDir}/.bootstrap/primary.ninja.in | $ - ${g.bootstrap.chooseStageCmd} ${g.bootstrap.bootstrapManifest} $ - ${g.bootstrap.buildDir}/.bootstrap/notAFile - current = ${g.bootstrap.buildDir}/.bootstrap/bootstrap.ninja.in -default ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in - -build ${g.bootstrap.buildDir}/build.ninja: g.bootstrap.bootstrap $ - ${g.bootstrap.buildDir}/.bootstrap/build.ninja.in | $ +default ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in + +build ${g.bootstrap.buildDir}/.minibootstrap/build.ninja: $ + g.bootstrap.bootstrap $ + ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in | $ ${g.bootstrap.bootstrapCmd} -default ${g.bootstrap.buildDir}/build.ninja +default ${g.bootstrap.buildDir}/.minibootstrap/build.ninja |