Skip to content

Commit

Permalink
split stage0/1 packages into sub-packages
Browse files Browse the repository at this point in the history
this allows to cross-compile a stage1 without development tools (which might
be interesting to create a rootfs for a single-purpose embedded applicance)
and on the other hand a cross-compiled stage1 with the full set of development
tools (some of which were previously typically built during stage0), by building
the metapackage base-dev together with stage1.
  • Loading branch information
rofl0r committed Mar 7, 2019
1 parent 6b1dd1c commit 3b268a6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -173,7 +173,8 @@ it.
Unlike native compilation, you don't have to build any stages, you can
immediately start compiling the packages you're interested in. If you intend
to use the resulting rootfs to boot into, you should however start with building
`stage1`.
`stage1`, and if you want to use the resulting rootfs as a full sabotage
installation with development tools, also the package `base-dev`.

Note that you need to build the `make` and `binutils` packages additional to
`stage1` if you intend to use the resulting rootfs with full compiler toolchain.
Expand Down
7 changes: 7 additions & 0 deletions pkg/base-dev
@@ -0,0 +1,7 @@
[deps]
jobflow
sabotage-core
kernel-headers
patch
binutils
make
4 changes: 4 additions & 0 deletions pkg/base-sys
@@ -0,0 +1,4 @@
[deps]
busybox
services

9 changes: 2 additions & 7 deletions pkg/stage0
@@ -1,13 +1,8 @@
[deps.stage0]
jobflow
sabotage-core
base-sys
services
stage0-gcc
stage0-musl
kernel-headers
busybox
patch
binutils
make
base-dev


8 changes: 4 additions & 4 deletions pkg/stage1
@@ -1,9 +1,7 @@
[deps]
jobflow
sabotage-core
base-sys
kbd
9base
busybox
e2fsprogs
gcc6
gmp
Expand All @@ -13,10 +11,12 @@ musl
man
zlib
binutils
patch
join
libressl
ca-certificates

[deps.host]
base-dev

[build]
rm -rf "$butch_root_dir""$butch_staging_dir"/stage1

0 comments on commit 3b268a6

Please sign in to comment.