blob: f2ae58d7e4ae718d823b8c09bfb6ae83e7c9687d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/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
install:
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}; \
install -D src/System.map \
linux-sysmap.data/boot/System.map; \
fi
oh-autoinstall -T headers_install -- INSTALL_HDR_PATH="$${PWD}/dest/usr"
find dest/usr/include \
\( -name .install -o -name ..install.cmd \
-o -name .check -o -name ..check.cmd \) \
-a -exec rm -f '{}' ';'
mkdir dest/usr/include/$(OPK_HOST_ARCH)
mv dest/usr/include/asm dest/usr/include/$(OPK_HOST_ARCH)/asm
oh-installfiles
oh-fixperms
|