summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-29 10:47:23 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-29 10:47:23 (EDT)
commit19e4e0aea09e8a49fcd9f4577a5b5be9bd7d586c (patch)
tree6664194678cd669b884de57e065f4b1c96f923a8 /build
parented716bee94b8987ad6971712609a46b0e44b15a2 (diff)
build: Rewrite.
Diffstat (limited to 'build')
-rwxr-xr-xbuild49
1 files changed, 11 insertions, 38 deletions
diff --git a/build b/build
index b2d4cb6..dc79509 100755
--- a/build
+++ b/build
@@ -1,41 +1,14 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
-linux-libre linux-libre-headers: linux-libre.stamp
+include ../source.mk
-linux-libre.config.stamp:
- cd src && \
- make oldconfig
- touch linux-libre.config.stamp
+build:
-linux-libre.build.stamp: linux-libre.config.stamp
- # TODO: This "uImage" target is hardcoded for the "rcstereo" platform, which
- # uses DAS U-Boot.
- cd src && \
- make -j $${JOBS:-1} uImage
- touch linux-libre.build.stamp
-
-linux-libre.install.stamp: linux-libre.build.stamp
- # TODO: Again, this is hardcoded for "rcstereo".
- install -D -m 644 "src/arch/$${ARCH}/boot/uImage" \
- "dest/boot/uImage-$${OH_PKGVER%%-*}"
- ln -sf "uImage-$${OH_PKGVER%%-*}" dest/boot/uImage
- cp src/.config "dest/boot/config-$${OH_PKGVER%%-*}"
- cp src/System.map "dest/boot/System.map-$${OH_PKGVER%%-*}"
- touch linux-libre.install.stamp
-
-linux-libre-headers.install.stamp:
- cd src && \
- make headers_check && \
- make INSTALL_HDR_PATH="$$(pwd)/../dest/usr" headers_install
- touch linux-libre-headers.install.stamp
-
-linux-libre.stamp: linux-libre.install.stamp linux-libre-headers.install.stamp
- oh-installfiles linux-libre linux-libre-headers
- oh-installdocs linux-libre
- oh-gencontrol linux-libre linux-libre-headers
- oh-buildopk linux-libre linux-libre-headers
- touch linux-libre.stamp
-
-.SILENT: linux-libre.config.stamp linux-libre.build.stamp \
- linux-libre.install.stamp linux-libre-headers.install.stamp \
- linux-libre.stamp
+install:
+ oh-autoinstall -T headers_check -- INSTALL_HDR_PATH='$$(DESTDIR)/usr'
+ find dest/usr/include \
+ \( -name .install -o -name ..install.cmd \
+ -o -name .check -o -name ..check.cmd \) \
+ -a exec rm -f '{}' ';'
+ oh-installfiles
+ oh-fixperms