3d3ae30764a06e99cac22751c57da7afb9584fc1
[vuplus_openembedded] / busybox / busybox_1.00-pre8.oe
1 LICENSE = "GPL"
2 SRC_URI="http://www.busybox.net/downloads/${PN}-${PV}.tar.gz"
3 DEPENDS = "virtual/libc"
4 DESCRIPTION = "BusyBox version ${PV}.\
5  BusyBox combines tiny versions of many common UNIX utilities into a single\
6  small executable. It provides minimalist replacements for most of the\
7  utilities you usually find in GNU fileutils, shellutils, etc. The utilities\
8  in BusyBox generally have fewer options than their full-featured GNU\
9  cousins; however, the options that are included provide the expected\
10  functionality and behave very much like their GNU counterparts. BusyBox\
11  provides a fairly complete POSIX environment for any small or embedded\
12  system.
13         
14 S = "${WORKDIR}/${P}"
15 export EXTRA_CFLAGS="${CFLAGS}"
16 EXTRA_OEMAKE_append=' CROSS=${HOST_PREFIX}'
17
18 inherit cml1
19
20 do_configure () {
21         install -m 0644 ${FILESDIR}/defconfig ${S}/.config
22         cml1_do_configure
23 }
24
25 do_compile () {
26         unset CFLAGS
27         base_do_compile
28 }
29
30 do_install () {
31         install -d ${D}/etc/init.d
32         oe_runmake 'PREFIX=${D}' install
33         install -m 0755 ${FILESDIR}/syslog ${D}/etc/init.d/syslog
34         install -m 0755 ${FILESDIR}/hwclock.sh ${D}/etc/init.d/hwclock.sh
35 }