From 4799f87aaef757d741f65f3d23f188f3032d824c Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Tue, 27 Jan 2015 13:28:57 +0000 Subject: WIP toybox implementation --- strata/build-essential.morph | 37 ++++++++++++++++++++++++++---- strata/build-essential/stage2-toybox.morph | 10 ++++++++ strata/build-essential/toybox.morph | 10 ++++++++ 3 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 strata/build-essential/stage2-toybox.morph create mode 100644 strata/build-essential/toybox.morph diff --git a/strata/build-essential.morph b/strata/build-essential.morph index 1611dbe8..43b90750 100644 --- a/strata/build-essential.morph +++ b/strata/build-essential.morph @@ -130,6 +130,17 @@ chunks: build-mode: bootstrap prefix: /tools +- name: stage2-toybox + morph: strata/build-essential/stage2-toybox.morph + repo: github:gfto/toybox.git + ref: master + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-glibc + build-mode: bootstrap + prefix: /tools + - name: stage2-busybox morph: strata/build-essential/stage2-busybox.morph repo: upstream:busybox @@ -204,7 +215,7 @@ chunks: unpetrify-ref: master build-depends: - stage2-binutils - - stage2-busybox + - stage2-toybox - stage2-glibc - stage2-fhs-dirs - stage2-gawk @@ -220,7 +231,7 @@ chunks: unpetrify-ref: baserock/v3.8 build-depends: - stage2-binutils - - stage2-busybox + - stage2-toybox - stage2-glibc - stage2-fhs-dirs - stage2-gawk @@ -236,7 +247,7 @@ chunks: unpetrify-ref: baserock/glibc-2.20 build-depends: - stage2-binutils - - stage2-busybox + - stage2-toybox - stage2-fake-bash - stage2-glibc - stage2-fhs-dirs @@ -258,7 +269,7 @@ chunks: unpetrify-ref: baserock/build-essential build-depends: - stage2-binutils - - stage2-busybox + - stage2-toybox - stage2-glibc - stage2-fhs-dirs - stage2-gawk @@ -277,7 +288,7 @@ chunks: unpetrify-ref: baserock/build-essential build-depends: - stage2-binutils - - stage2-busybox + - stage2-toybox - stage2-glibc - stage2-fhs-dirs - stage2-gawk @@ -288,6 +299,22 @@ chunks: - glibc - zlib +- name: toybox + morph: strata/build-essential/toybox.morph + repo: github:gfto/toybox.git + ref: master + build-depends: + - stage2-binutils + - stage2-toybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + - name: busybox morph: strata/build-essential/busybox.morph repo: upstream:busybox diff --git a/strata/build-essential/stage2-toybox.morph b/strata/build-essential/stage2-toybox.morph new file mode 100644 index 00000000..eff46875 --- /dev/null +++ b/strata/build-essential/stage2-toybox.morph @@ -0,0 +1,10 @@ +name: stage2-toybox +kind: chunk +configure-commands: +- chmod +x ./configure +- ./configure --prefix="$PREFIX" +build-commands: +- CFLAGS="--static" make defconfig +- make toybox +install-commands: +- PREFIX="$DESTDIR$PREFIX" make install diff --git a/strata/build-essential/toybox.morph b/strata/build-essential/toybox.morph new file mode 100644 index 00000000..69a76c67 --- /dev/null +++ b/strata/build-essential/toybox.morph @@ -0,0 +1,10 @@ +name: toybox +kind: chunk +configure-commands: +- chmod +x ./configure +- ./configure --prefix="$PREFIX" +build-commands: +- CFLAGS="--static" make defconfig +- make toybox +install-commands: +- PREFIX="$DESTDIR$PREFIX" make install -- cgit v1.2.1