summaryrefslogtreecommitdiff
path: root/baserock/strata/tools
diff options
context:
space:
mode:
Diffstat (limited to 'baserock/strata/tools')
-rw-r--r--baserock/strata/tools/device-tree-compiler.morph6
-rw-r--r--baserock/strata/tools/distcc.morph10
-rw-r--r--baserock/strata/tools/gdb.morph6
-rw-r--r--baserock/strata/tools/git-fat.morph4
-rw-r--r--baserock/strata/tools/ipmitool.morph5
-rw-r--r--baserock/strata/tools/kexec-tools.morph6
-rw-r--r--baserock/strata/tools/lsof.morph12
-rw-r--r--baserock/strata/tools/parted.morph11
-rw-r--r--baserock/strata/tools/procps-ng.morph27
-rw-r--r--baserock/strata/tools/u-boot.morph11
-rw-r--r--baserock/strata/tools/vala-bootstrap.morph7
-rw-r--r--baserock/strata/tools/zip.morph9
12 files changed, 114 insertions, 0 deletions
diff --git a/baserock/strata/tools/device-tree-compiler.morph b/baserock/strata/tools/device-tree-compiler.morph
new file mode 100644
index 00000000..8abfafc8
--- /dev/null
+++ b/baserock/strata/tools/device-tree-compiler.morph
@@ -0,0 +1,6 @@
+name: device-tree-compiler
+kind: chunk
+build-commands:
+- make all
+install-commands:
+- make install DESTDIR="$DESTDIR" PREFIX="$PREFIX"
diff --git a/baserock/strata/tools/distcc.morph b/baserock/strata/tools/distcc.morph
new file mode 100644
index 00000000..82adbe50
--- /dev/null
+++ b/baserock/strata/tools/distcc.morph
@@ -0,0 +1,10 @@
+name: distcc
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- NOCONFIGURE=1 ./autogen.sh
+# distcc doesn't use automake, so we cannot autoreconf it
+- cp /usr/share/automake*/config.guess .
+- cp /usr/share/automake*/config.sub .
+configure-commands:
+- ./configure --prefix="$PREFIX" --disable-Werror
diff --git a/baserock/strata/tools/gdb.morph b/baserock/strata/tools/gdb.morph
new file mode 100644
index 00000000..6f60da9e
--- /dev/null
+++ b/baserock/strata/tools/gdb.morph
@@ -0,0 +1,6 @@
+name: gdb
+kind: chunk
+build-system: autotools
+configure-commands:
+- ./configure --prefix="$PREFIX" --disable-werror --disable-gas --disable-binutils
+ --disable-ld --disable-gold --disable-gprof
diff --git a/baserock/strata/tools/git-fat.morph b/baserock/strata/tools/git-fat.morph
new file mode 100644
index 00000000..c971b07f
--- /dev/null
+++ b/baserock/strata/tools/git-fat.morph
@@ -0,0 +1,4 @@
+name: git-fat
+kind: chunk
+install-commands:
+- install -D -m 755 git-fat "$DESTDIR/usr/bin/git-fat"
diff --git a/baserock/strata/tools/ipmitool.morph b/baserock/strata/tools/ipmitool.morph
new file mode 100644
index 00000000..db0d5a3a
--- /dev/null
+++ b/baserock/strata/tools/ipmitool.morph
@@ -0,0 +1,5 @@
+name: ipmitool
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- touch NEWS
diff --git a/baserock/strata/tools/kexec-tools.morph b/baserock/strata/tools/kexec-tools.morph
new file mode 100644
index 00000000..118c1ac2
--- /dev/null
+++ b/baserock/strata/tools/kexec-tools.morph
@@ -0,0 +1,6 @@
+name: kexec-tools
+kind: chunk
+build-system: autotools
+configure-commands:
+- ./bootstrap
+- ./configure --prefix="$PREFIX"
diff --git a/baserock/strata/tools/lsof.morph b/baserock/strata/tools/lsof.morph
new file mode 100644
index 00000000..38183ae6
--- /dev/null
+++ b/baserock/strata/tools/lsof.morph
@@ -0,0 +1,12 @@
+name: lsof
+kind: chunk
+configure-commands:
+- tar xf lsof_*_src.tar --no-same-owner
+- cd lsof_*_src/ && ./Configure -n linux
+build-commands:
+- cd lsof_*_src/ && make
+install-commands:
+- mkdir -p "$DESTDIR$PREFIX"/bin
+- mv lsof_*_src/lsof "$DESTDIR$PREFIX"/bin/lsof
+- mkdir -p "$DESTDIR$PREFIX"/man/man8
+- mv lsof_*_src/lsof.8 "$DESTDIR$PREFIX"/man/man8
diff --git a/baserock/strata/tools/parted.morph b/baserock/strata/tools/parted.morph
new file mode 100644
index 00000000..86d74da6
--- /dev/null
+++ b/baserock/strata/tools/parted.morph
@@ -0,0 +1,11 @@
+name: parted
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+configure-commands:
+# Disable device-mapper as it is not installed on Baserock
+- ./configure --prefix="$PREFIX" --disable-device-mapper
+build-commands:
+- make WERROR_CFLAGS=""
diff --git a/baserock/strata/tools/procps-ng.morph b/baserock/strata/tools/procps-ng.morph
new file mode 100644
index 00000000..e030b36c
--- /dev/null
+++ b/baserock/strata/tools/procps-ng.morph
@@ -0,0 +1,27 @@
+name: procps-ng
+kind: chunk
+
+description: |
+ Process management tools.
+
+ procps-ng is a fork of the original procps project.
+
+build-system: autotools
+
+configure-commands:
+- NOCONFIGURE=1 ./autogen.sh
+ # Setting exec-prefix to /usr causes a bunch of stuff to go in /usr/usr/bin
+ # Setting prefix to / causes files to go in /include and /share
+ # So don't do either of those things!
+- ./configure --prefix="$PREFIX" --exec-prefix=/
+
+post-install-commands:
+# We need to link the binaries into /bin so that they override the Busybox
+# versions of these tools. This will not be necessary once /bin is merged
+# into /usr/bin. It's not possible to get the Makefile to install the binaries
+# in /bin -- a bunch of them are hardcoded to live in ${exec_prefix}/usr/bin.
+ - |
+ usr_binaries="free pidof pmap slabtop top vmstat watch pgrep pkill pwdx tload uptime w"
+ for file in $usr_binaries; do
+ ln -sf "$PREFIX"/bin/$file "$DESTDIR"/bin/$file
+ done
diff --git a/baserock/strata/tools/u-boot.morph b/baserock/strata/tools/u-boot.morph
new file mode 100644
index 00000000..9be30bc7
--- /dev/null
+++ b/baserock/strata/tools/u-boot.morph
@@ -0,0 +1,11 @@
+name: u-boot
+kind: chunk
+build-commands:
+- make tools
+install-commands:
+- mkdir -p "$DESTDIR$PREFIX/bin"
+- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/."
+- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/."
+- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/."
+- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/."
+- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/."
diff --git a/baserock/strata/tools/vala-bootstrap.morph b/baserock/strata/tools/vala-bootstrap.morph
new file mode 100644
index 00000000..e55b1887
--- /dev/null
+++ b/baserock/strata/tools/vala-bootstrap.morph
@@ -0,0 +1,7 @@
+name: vala-bootstrap
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- autoreconf -ivf
+configure-commands:
+- ./configure --prefix="$PREFIX"
diff --git a/baserock/strata/tools/zip.morph b/baserock/strata/tools/zip.morph
new file mode 100644
index 00000000..070467e0
--- /dev/null
+++ b/baserock/strata/tools/zip.morph
@@ -0,0 +1,9 @@
+name: zip
+kind: chunk
+configure-commands:
+- cp unix/Makefile .
+build-commands:
+- sed -i -e 's/^prefix = .*$/prefix = $$DESTDIR\/$$PREFIX/' Makefile
+- make generic
+install-commands:
+- make install