summaryrefslogtreecommitdiff
path: root/strata/bsp-rpi2
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-09 10:52:58 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-09 10:52:58 +0000
commit69aaa1d3e588eefe442fd11407f7e4d5e924f637 (patch)
tree632a1446c29461ca99a64125767876537ced4c21 /strata/bsp-rpi2
parent7df94813ace7c986dd468924524e0b8c57b42b6e (diff)
downloaddefinitions-69aaa1d3e588eefe442fd11407f7e4d5e924f637.tar.gz
Add GNU grep as build deps
Diffstat (limited to 'strata/bsp-rpi2')
-rw-r--r--strata/bsp-rpi2/grep.morph13
1 files changed, 13 insertions, 0 deletions
diff --git a/strata/bsp-rpi2/grep.morph b/strata/bsp-rpi2/grep.morph
new file mode 100644
index 00000000..ae35fa9e
--- /dev/null
+++ b/strata/bsp-rpi2/grep.morph
@@ -0,0 +1,13 @@
+name: grep
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- bash bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+configure-commands:
+- ./configure --prefix="$PREFIX" --disable-gcc-warnings
+post-install-commands:
+# This hack is to use GNU sed instead the busybox one.
+# This will dissappear when we merge /usr/bin and /bin.
+- mkdir -p "$DESTDIR"/bin/
+- ln -sf ../usr/bin/grep "$DESTDIR"/bin/