summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-28 18:30:27 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-28 18:30:27 (EDT)
commit787c4c6c3ce036bf823b1d953b6a20ae27c5249f (patch)
treecff033ada02e9ab43183a7bc08d6fa2b1d026bcf /build
linux-libre 3.10.95~gnu-1
I'm taking the opportunity to start fresh because the original repository is weighed down by an upstream source archive in contained long ago. See the linux-libre package repository for the full Git history.
Diffstat (limited to 'build')
-rwxr-xr-xbuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..f14ee96
--- /dev/null
+++ b/build
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+KBUILD_ARCH = $$(oh-architecture "$${OPK_HOST_ARCH}")
+
+nop:
+ @:
+
+build:
+ set -e; \
+ if [ 'x$(OPK_HOST_PLAT)' != 'xdev' ]; then \
+ read img_src img_dest <image; \
+ oh-autobuild -T "$${img_src}" -- -j "$${JOBS:-1}"; \
+ fi
+ touch $@
+
+install: build
+ set -e; \
+ if [ 'x$(OPK_HOST_PLAT)' != 'xdev' ]; then \
+ read img_src img_dest <image; \
+ install -D "src/arch/$(KBUILD_ARCH)/boot/$${img_src}" \
+ linux-image.data/boot/$${img_dest}; \
+ ln -sf /boot/$${img_dest} linux-image.data/$${img_dest}; \
+ install -D src/System.map \
+ linux-sysmap.data/boot/System.map; \
+ mkdir -p linux-image.data/etc/kernel/preinst.d \
+ linux-image.data/etc/kernel/postinst.d \
+ linux-image.data/etc/kernel/prerm.d \
+ linux-image.data/etc/kernel/postrm.d; \
+ fi
+ oh-autoinstall -T headers_install -- \
+ INSTALL_HDR_PATH="$${PWD}/linux-libc-dev.data/usr"
+ find linux-libc-dev.data/usr/include \
+ \( -name .install -o -name ..install.cmd \
+ -o -name .check -o -name ..check.cmd \) \
+ -a -exec rm -f '{}' ';'
+ mkdir linux-libc-dev.data/usr/include/$(OPK_HOST_ARCH)
+ mv linux-libc-dev.data/usr/include/asm \
+ linux-libc-dev.data/usr/include/$(OPK_HOST_ARCH)/asm