blob: e562c8d2cc8590323bd1a563ea7c6d5e60de1ab0 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#! /usr/bin/make -f
include ../source.mk
config_enabled = \
config_enabled() \
{ \
grep "^CONFIG_$${1}=y$$" <src/.config >/dev/null 2>&1; \
}
install_init_script = \
install_init_script() \
{ \
install -p -m 0755 "../src.etc/init.d/$${1}" \
"dest/etc/init.d/$${1}"; \
}
nop:
@:
build:
oh-autobuild -- -j $${JOBS:-1}
install:
oh-autoinstall
oh-fixperms
oh-strip
chmod u+s dest/bin/busybox
mv dest/usr/bin/ar dest/usr/bin/ar.busybox
mv dest/usr/bin/strings dest/usr/bin/strings.busybox
mv dest/usr/bin/clear dest/usr/bin/clear.busybox
mv dest/usr/bin/reset dest/usr/bin/reset.busybox
set -e; $(config_enabled); $(install_init_script); \
if config_enabled INIT; then \
install -d -m 0755 dest/etc/init.d; \
config_enabled HOSTNAME && install_init_script hostname; \
config_enabled HTTPD && install_init_script httpd && \
install -d -m 0755 dest/var/www && \
install -p -m 0644 ../src.var/www/index.html \
dest/var/www/index.html; \
config_enabled KLOGD && install_init_script klogd; \
config_enabled MDEV && install_init_script mdev; \
config_enabled MOUNT_FSTAB && install_init_script mountall; \
config_enabled MOUNT_FLAGS && install_init_script mountkernfs; \
config_enabled IFUPDOWN && install_init_script networking; \
config_enabled SYSLOGD && install_init_script syslog; \
config_enabled TELNETD && install_init_script telnetd; \
fi
oh-installfiles
|