summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strata/build-essential.morph37
-rw-r--r--strata/build-essential/stage2-toybox.morph10
-rw-r--r--strata/build-essential/toybox.morph10
3 files changed, 52 insertions, 5 deletions
diff --git a/strata/build-essential.morph b/strata/build-essential.morph
index 1611dbe..43b9075 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 0000000..eff4687
--- /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 0000000..69a76c6
--- /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