summaryrefslogtreecommitdiff
path: root/recipes/klibc/klibc-utils-static_1.5.bb
blob: 78763ef95ac2b38b5d3f02963a0202008c46eba7 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
require klibc-common.inc
PR = "r13"

KLIBC_FETCHDIR = "Stable"

SRC_URI += "file://fstype-sane-vfat-and-jffs2-for-1.5.patch;patch=1 \
            file://modprobe.patch;patch=1 \
            file://losetup.patch;patch=1 \
            file://dash_readopt.patch;patch=1 \
            file://wc.patch;patch=1 \
            file://staging.patch;patch=1 \
            file://klibc_kexecsyscall.patch;patch=1 \
            "

FILESPATHPKG =. "klibc-${PV}:"

# We only want the static utils. klibc build both. So we install only what we want.
do_install() {
        install -d ${D}${base_bindir}
        install -d ${D}${base_sbindir}
        install -m 755 usr/dash/sh ${D}${base_bindir}
        install -m 755 usr/gzip/gzip ${D}${base_bindir}
        install -m 755 usr/kinit/kinit ${D}${base_bindir}
        install -m 755 usr/kinit/fstype/static/fstype ${D}${base_bindir}
        install -m 755 usr/kinit/ipconfig/static/ipconfig ${D}${base_bindir}
        install -m 755 usr/kinit/nfsmount/static/nfsmount ${D}${base_bindir}
        install -m 755 usr/kinit/resume/static/resume ${D}${base_bindir}
        install -m 755 usr/kinit/run-init/static/run-init ${D}${base_bindir}
        install -m 755 usr/utils/static/cat ${D}${base_bindir}
        install -m 755 usr/utils/static/chroot ${D}${base_bindir}
        install -m 755 usr/utils/static/cpio ${D}${base_bindir}
        install -m 755 usr/utils/static/dd ${D}${base_bindir}
        install -m 755 usr/utils/static/false ${D}${base_bindir}
        install -m 755 usr/utils/static/halt ${D}${base_bindir}
        install -m 755 usr/utils/static/insmod ${D}${base_bindir}
        install -m 755 usr/utils/static/kill ${D}${base_bindir}
        install -m 755 usr/utils/static/ln ${D}${base_bindir}
        install -m 755 usr/utils/static/minips ${D}${base_bindir}
        install -m 755 usr/utils/static/mkdir ${D}${base_bindir}
        install -m 755 usr/utils/static/mkfifo ${D}${base_bindir}
        install -m 755 usr/utils/static/mknod ${D}${base_bindir}
        install -m 755 usr/utils/static/mount ${D}${base_bindir}
        install -m 755 usr/utils/static/nuke ${D}${base_bindir}
        install -m 755 usr/utils/static/pivot_root ${D}${base_bindir}
        install -m 755 usr/utils/static/poweroff ${D}${base_bindir}
        install -m 755 usr/utils/static/readlink ${D}${base_bindir}
        install -m 755 usr/utils/static/reboot ${D}${base_bindir}
        install -m 755 usr/utils/static/sleep ${D}${base_bindir}
        install -m 755 usr/utils/static/true ${D}${base_bindir}
        install -m 755 usr/utils/static/umount ${D}${base_bindir}
        install -m 755 usr/utils/static/uname ${D}${base_bindir}
        install -m 755 usr/utils/static/modprobe ${D}${base_sbindir}
        install -m 755 usr/utils/static/losetup ${D}${base_bindir}
        install -m 755 usr/utils/static/wc ${D}${base_bindir}
        cd ${D}${base_bindir}
        ln -s gzip gunzip
        ln -s gzip zcat
        cd -
}

PACKAGES = "klibc-utils-static-sh klibc-utils-static-gzip \
        klibc-utils-static-kinit klibc-utils-static-fstype \
        klibc-utils-static-ipconfig klibc-utils-static-nfsmount \
        klibc-utils-static-resume klibc-utils-static-run-init \
        klibc-utils-static-cat klibc-utils-static-chroot \
        klibc-utils-static-cpio klibc-utils-static-dd \
        klibc-utils-static-false klibc-utils-static-halt \
        klibc-utils-static-insmod klibc-utils-static-kill \
        klibc-utils-static-ln klibc-utils-static-minips \
        klibc-utils-static-mkdir klibc-utils-static-mkfifo \
        klibc-utils-static-mknod klibc-utils-static-mount \
        klibc-utils-static-nuke klibc-utils-static-pivot-root \
        klibc-utils-static-poweroff klibc-utils-static-readlink \
        klibc-utils-static-reboot klibc-utils-static-sleep \
        klibc-utils-static-true klibc-utils-static-umount \
        klibc-utils-static-uname klibc-utils-static-modprobe \
        klibc-utils-static-losetup klibc-utils-static-wc"

FILES_klibc-utils-static-sh = "${base_bindir}/sh"
FILES_klibc-utils-static-gzip = "${base_bindir}/gzip ${base_bindir}/gunzip ${base_bindir}/zcat"
FILES_klibc-utils-static-kinit = "${base_bindir}/kinit"
FILES_klibc-utils-static-fstype = "${base_bindir}/fstype"
FILES_klibc-utils-static-ipconfig = "${base_bindir}/ipconfig"
FILES_klibc-utils-static-nfsmount = "${base_bindir}/nfsmount"
FILES_klibc-utils-static-resume = "${base_bindir}/resume"
FILES_klibc-utils-static-run-init = "${base_bindir}/run-init"
FILES_klibc-utils-static-cat = "${base_bindir}/cat"
FILES_klibc-utils-static-chroot = "${base_bindir}/chroot"
FILES_klibc-utils-static-cpio = "${base_bindir}/cpio"
FILES_klibc-utils-static-dd = "${base_bindir}/dd"
FILES_klibc-utils-static-false = "${base_bindir}/false"
FILES_klibc-utils-static-halt = "${base_bindir}/halt"
FILES_klibc-utils-static-insmod = "${base_bindir}/insmod"
FILES_klibc-utils-static-kill = "${base_bindir}/kill"
FILES_klibc-utils-static-ln = "${base_bindir}/ln"
FILES_klibc-utils-static-minips = "${base_bindir}/minips"
FILES_klibc-utils-static-mkdir = "${base_bindir}/mkdir"
FILES_klibc-utils-static-mkfifo = "${base_bindir}/mkfifo"
FILES_klibc-utils-static-mknod = "${base_bindir}/mknod"
FILES_klibc-utils-static-mount = "${base_bindir}/mount"
FILES_klibc-utils-static-nuke = "${base_bindir}/nuke"
FILES_klibc-utils-static-pivot-root = "${base_bindir}/pivot_root"
FILES_klibc-utils-static-poweroff = "${base_bindir}/poweroff"
FILES_klibc-utils-static-readlink = "${base_bindir}/readlink"
FILES_klibc-utils-static-reboot = "${base_bindir}/reboot"
FILES_klibc-utils-static-sleep = "${base_bindir}/sleep"
FILES_klibc-utils-static-true = "${base_bindir}/true"
FILES_klibc-utils-static-umount = "${base_bindir}/umount"
FILES_klibc-utils-static-uname = "${base_bindir}/uname"
FILES_klibc-utils-static-modprobe = "${base_sbindir}/modprobe"
FILES_klibc-utils-static-losetup = "${base_bindir}/losetup"
FILES_klibc-utils-static-wc = "${base_bindir}/wc"