diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-23 17:48:03 +0100 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-09-18 15:50:19 +0000 |
commit | 81ebe71089d802061c2c3cb03bfd548388d04cb8 (patch) | |
tree | 207ec00ee9ca045825dc52560d6ab6ee36e81e7b /tests.build/setup-build-essential | |
parent | a4d8098b229592db40565747b0444b518bf8a6eb (diff) | |
download | morph-81ebe71089d802061c2c3cb03bfd548388d04cb8.tar.gz |
Remove support for Baserock definitions format versions 3, 4 and 5
Change-Id: Iad95af65bd5c528d2e72f5b2ffa80a01152f50ff
Diffstat (limited to 'tests.build/setup-build-essential')
-rwxr-xr-x | tests.build/setup-build-essential | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/tests.build/setup-build-essential b/tests.build/setup-build-essential index 281ff7ec..8868db68 100755 --- a/tests.build/setup-build-essential +++ b/tests.build/setup-build-essential @@ -26,6 +26,15 @@ echo "I'm a compiler!" EOF chmod +x morph-test-cc +git init -q +git add morph-test-cc +git commit -q -m "Create compiler chunk" + +cd "$DATADIR/morphs-repo" + +# Require 'cc' in hello-chunk. We should have the second version available +# but *not* the first one. + cat <<EOF > "stage1-cc.morph" name: stage1-cc kind: chunk @@ -44,14 +53,6 @@ install-commands: - install -m 755 morph-test-cc "\$DESTDIR\$PREFIX/bin/morph-test-cc" EOF -git init -q -git add morph-test-cc cc.morph stage1-cc.morph -git commit -q -m "Create compiler chunk" - -# Require 'cc' in hello-chunk. We should have the second version available -# but *not* the first one. -cd "$DATADIR/chunk-repo" -git checkout -q farrokh cat <<EOF > "hello.morph" name: hello kind: chunk @@ -64,13 +65,12 @@ install-commands: - install -d "\$DESTDIR\$PREFIX/bin" - install hello "\$DESTDIR\$PREFIX/bin/hello" EOF -git add hello.morph -git commit -q -m "Make 'hello' require our mock compiler" +git add hello.morph stage1-cc.morph cc.morph # Add 'build-essential' stratum and make hello-stratum depend upon it. Only # the *second* 'cc' chunk should make it into the build-essential stratum # artifact, and neither should make it into the system. -cd "$DATADIR/morphs-repo" + cat <<EOF > "build-essential.morph" name: build-essential kind: stratum @@ -78,12 +78,14 @@ chunks: - name: stage1-cc repo: test:cc-repo ref: master + morph: stage1-cc.morph build-depends: [] build-mode: bootstrap prefix: /tools - name: cc repo: test:cc-repo ref: master + morph: cc.morph build-depends: - stage1-cc build-mode: test @@ -98,6 +100,7 @@ chunks: - name: hello repo: test:chunk-repo ref: farrokh + morph: hello.morph build-depends: [] build-mode: test EOF |