summaryrefslogtreecommitdiff
path: root/recipes/klibc/klibc-utils.inc
blob: 912b77471689ed54a82dbd289027e416f2740a60 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
KLIBC_UTILS_VARIANT ?= "shared"
KLIBC_UTILS_PKGNAME ?= "klibc-utils"

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

# only in 1.5
# install -m 755 usr/utils/${KLIBC_UTILS_VARIANT}/insmod ${D}${base_bindir}

# only in >= 1.5.18 (can be moved to do_install_append above as soon as klibc_1.5 is dropped from tree)
# install -m 755 usr/utils/${KLIBC_UTILS_VARIANT}/dmesg ${D}${base_bindir}
# install -m 755 usr/utils/${KLIBC_UTILS_VARIANT}/sync ${D}${base_bindir}
# install -m 755 usr/utils/${KLIBC_UTILS_VARIANT}/ls ${D}${base_bindir}

PACKAGES += "${KLIBC_UTILS_PKGNAME}-sh \
             ${KLIBC_UTILS_PKGNAME}-gzip \
             ${KLIBC_UTILS_PKGNAME}-kinit \
             ${KLIBC_UTILS_PKGNAME}-fstype \
             ${KLIBC_UTILS_PKGNAME}-ipconfig \
             ${KLIBC_UTILS_PKGNAME}-nfsmount \
             ${KLIBC_UTILS_PKGNAME}-resume \
             ${KLIBC_UTILS_PKGNAME}-run-init \
             ${KLIBC_UTILS_PKGNAME}-cat \
             ${KLIBC_UTILS_PKGNAME}-chroot \
             ${KLIBC_UTILS_PKGNAME}-cpio \
             ${KLIBC_UTILS_PKGNAME}-dd \
             ${KLIBC_UTILS_PKGNAME}-dmesg \
             ${KLIBC_UTILS_PKGNAME}-false \
             ${KLIBC_UTILS_PKGNAME}-halt \
             ${KLIBC_UTILS_PKGNAME}-kill \
             ${KLIBC_UTILS_PKGNAME}-ln \
             ${KLIBC_UTILS_PKGNAME}-minips \
             ${KLIBC_UTILS_PKGNAME}-mkdir \
             ${KLIBC_UTILS_PKGNAME}-mkfifo \
             ${KLIBC_UTILS_PKGNAME}-mknod \
             ${KLIBC_UTILS_PKGNAME}-mount \
             ${KLIBC_UTILS_PKGNAME}-nuke \
             ${KLIBC_UTILS_PKGNAME}-pivot-root \
             ${KLIBC_UTILS_PKGNAME}-poweroff \
             ${KLIBC_UTILS_PKGNAME}-readlink \
             ${KLIBC_UTILS_PKGNAME}-reboot \
             ${KLIBC_UTILS_PKGNAME}-sleep \
             ${KLIBC_UTILS_PKGNAME}-sync \
             ${KLIBC_UTILS_PKGNAME}-true \
             ${KLIBC_UTILS_PKGNAME}-umount \
             ${KLIBC_UTILS_PKGNAME}-uname \
             ${KLIBC_UTILS_PKGNAME}-modprobe \
             ${KLIBC_UTILS_PKGNAME}-losetup \
             ${KLIBC_UTILS_PKGNAME}-wc \
             ${KLIBC_UTILS_PKGNAME}-insmod \
             ${KLIBC_UTILS_PKGNAME}-ls"

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