summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-09 10:52:58 (GMT)
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-13 17:15:57 (GMT)
commit69aa830e218676a2b3b04a4b65ea6d65693d7c41 (patch)
tree09050643df6d4585a64f38fd07cb3a08f0dfa535
parent87b239941ca6f6737063c52e5f74a4ee6f11f52f (diff)
downloaddefinitions-69aa830e218676a2b3b04a4b65ea6d65693d7c41.tar.gz
Add GNU grep as build deps
-rw-r--r--strata/bsp-rpi2.morph7
-rw-r--r--strata/bsp-rpi2/grep.morph13
2 files changed, 20 insertions, 0 deletions
diff --git a/strata/bsp-rpi2.morph b/strata/bsp-rpi2.morph
index ea10521..d827c51 100644
--- a/strata/bsp-rpi2.morph
+++ b/strata/bsp-rpi2.morph
@@ -12,8 +12,15 @@ description: |
build-depends:
- morph: strata/core.morph
chunks:
+- name: grep
+ morph: strata/bsp-rpi2/grep.morph
+ repo: upstream:grep
+ ref: d930f765041bb2ad936056ddfdad60042d44bd9d
+ unpetrify-ref: v2.21
- name: linux-rpi2
morph: strata/bsp-rpi2/linux-rpi2.morph
repo: https://github.com/raspberrypi/linux.git
ref: rpi-4.1.y
unpetrify-ref: foooo
+ build-depends:
+ - grep
diff --git a/strata/bsp-rpi2/grep.morph b/strata/bsp-rpi2/grep.morph
new file mode 100644
index 0000000..ae35fa9
--- /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/