diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/0004-kernel_ver.patch b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/0004-kernel_ver.patch deleted file mode 100644 index d760e72b4..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/0004-kernel_ver.patch +++ /dev/null @@ -1,38 +0,0 @@ -From: Javier Viguera -Date: Mon, 10 Sep 2012 14:13:18 +0200 -Subject: [PATCH] kernel_ver - -Upstream patch - -Signed-off-by: Javier Viguera ---- - libbb/kernel_version.c | 11 ++++------- - 1 file changed, 4 insertions(+), 7 deletions(-) - -diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c -index a168a1e..738ed02 100644 ---- a/libbb/kernel_version.c -+++ b/libbb/kernel_version.c -@@ -20,18 +20,15 @@ - int FAST_FUNC get_linux_version_code(void) - { - struct utsname name; -- char *s; -+ char *s, *t; - int i, r; - -- if (uname(&name) == -1) { -- bb_perror_msg("can't get system information"); -- return 0; -- } -- -+ uname(&name); /* never fails */ - s = name.release; - r = 0; - for (i = 0; i < 3; i++) { -- r = r * 256 + atoi(strtok(s, ".")); -+ t = strtok(s, "."); -+ r = r * 256 + (t ? atoi(t) : 0); - s = NULL; - } - return r; diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-cron b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-cron deleted file mode 100755 index f0e6b1562..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-cron +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -DAEMON=/usr/sbin/crond -NAME=crond -DESC="Busybox Periodic Command Scheduler" -ARGS="-c /etc/cron/crontabs" - -test -f $DAEMON || exit 0 - -set -e - -case "$1" in - start) - echo -n "starting $DESC: $NAME... " - start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS - echo "done." - ;; - stop) - echo -n "stopping $DESC: $NAME... " - start-stop-daemon -K -n $NAME - echo "done." - ;; - restart) - echo -n "restarting $DESC: $NAME... " - $0 stop - $0 start - echo "done." - ;; - reload) - echo -n "reloading $DESC: $NAME... " - killall -HUP $(basename ${DAEMON}) - echo "done." - ;; - *) - echo "Usage: $0 {start|stop|restart|reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-httpd b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-httpd deleted file mode 100755 index c8348e54a..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-httpd +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -DAEMON=/usr/sbin/httpd -NAME=httpd -DESC="Busybox HTTP Daemon" -HTTPROOT="/srv/www" -ARGS="-h $HTTPROOT" - -test -f $DAEMON || exit 0 - -set -e - -case "$1" in - start) - echo -n "starting $DESC: $NAME... " - if [ ! -d $HTTPROOT ]; then - echo "$HTTPROOT is missing." - exit 1 - fi - start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS - echo "done." - ;; - stop) - echo -n "stopping $DESC: $NAME... " - start-stop-daemon -K -n $NAME - echo "done." - ;; - restart) - echo "restarting $DESC: $NAME... " - $0 stop - $0 start - echo "done." - ;; - reload) - echo -n "reloading $DESC: $NAME... " - killall -HUP $(basename ${DAEMON}) - echo "done." - ;; - *) - echo "Usage: $0 {start|stop|restart|reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc deleted file mode 100755 index 2c43f8da2..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# -# (c) 2010-2011 Wind River Systems, Inc. -# -# Busybox udhcpc init script -# -# script to start the udpchc DHCP client on boots where -# the parameter 'ip=dhcp' was included in the kernel parameters - -# ensure the required binaries are present -[ -x /sbin/udhcpc ] || exit 1 -[ -x /bin/grep ] || exit 1 -[ -x /bin/mount ] || exit 1 - -# ensure /proc is mounted -if ! mount | grep -q "/proc "; then - exit 2 -fi - -rc=0 -if grep -q -E "\bip=dhcp\b" /proc/cmdline; then - /sbin/udhcpc -D -s /usr/share/udhcpc/default.script - rc=$? -fi -exit $rc diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-udhcpd b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-udhcpd deleted file mode 100755 index c43903e8d..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/busybox-udhcpd +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh -DAEMON=/usr/sbin/udhcpd -NAME=udhcpd -DESC="Busybox UDHCP Server" -ARGS="/etc/udhcpd.conf" - -test -f $DAEMON || exit 1 - -set -e - -case "$1" in - start) - echo -n "starting $DESC: $NAME... " - if [ ! -f /etc/udhcpd.conf ]; then - echo "error: /etc/udhcpd.conf is missing." - exit 1 - fi - /sbin/start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS - echo "done." - ;; - stop) - echo -n "stopping $DESC: $NAME... " - /sbin/start-stop-daemon -K -n $NAME - echo "done." - ;; - restart) - echo "restarting $DESC: $NAME... " - $0 stop - $0 start - echo "done." - ;; - reload) - echo -n "reloading $DESC: $NAME... " - killall -HUP $(basename ${DAEMON}) - echo "done." - ;; - *) - echo "Usage: $0 {start|stop|restart|reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/default.script b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/default.script deleted file mode 100644 index f2ac987a2..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/default.script +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -exec run-parts -a "$1" /etc/udhcpc.d - diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/hwclock.sh b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/hwclock.sh deleted file mode 100644 index 2e50425ba..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/hwclock.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: hwclock -# Required-Start: -# Required-Stop: $local_fs -# Default-Start: S -# Default-Stop: 0 6 -# Short-Description: Set system clock -# Description: Set system clock to hardware clock, according to the UTC -# setting in /etc/default/rcS (see also rcS(5)). -### END INIT INFO -# -# WARNING: If your hardware clock is not in UTC/GMT, this script -# must know the local time zone. This information is -# stored in /etc/localtime. This might be a problem if -# your /etc/localtime is a symlink to something in -# /usr/share/zoneinfo AND /usr isn't in the root -# partition! The workaround is to define TZ either -# in /etc/default/rcS, or in the proper place below. - -[ ! -x /sbin/hwclock ] && exit 0 - -. /etc/default/rcS - -case "$1" in - start) - if [ "$VERBOSE" != no ] - then - echo "System time was `date`." - echo "Setting the System Clock using the Hardware Clock as reference..." - fi - - if [ "$HWCLOCKACCESS" != no ] - then - if [ -z "$TZ" ] - then - hwclock --hctosys - else - TZ="$TZ" hwclock --hctosys - fi - fi - - if [ "$VERBOSE" != no ] - then - echo "System Clock set. System local time is now `date`." - fi - ;; - stop|restart|reload|force-reload) - # - # Updates the Hardware Clock with the System Clock time. - # This will *override* any changes made to the Hardware Clock. - # - # WARNING: If you disable this, any changes to the system - # clock will not be carried across reboots. - # - if [ "$VERBOSE" != no ] - then - echo "Saving the System Clock time to the Hardware Clock..." - fi - if [ "$HWCLOCKACCESS" != no ] - then - hwclock --systohc - fi - if [ "$VERBOSE" != no ] - then - echo "Hardware Clock updated to `date`." - fi - exit 0 - ;; - show) - if [ "$HWCLOCKACCESS" != no ] - then - hwclock --show - fi - ;; - *) - echo "Usage: hwclock.sh {start|stop|show|reload|restart}" >&2 - echo " start sets kernel (system) clock from hardware (RTC) clock" >&2 - echo " stop and reload set hardware (RTC) clock from kernel (system) clock" >&2 - exit 1 - ;; -esac diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/mdev b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/mdev deleted file mode 100755 index 4eba6190c..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/mdev +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -mount -t tmpfs tmpfs /dev -o size=64k,mode=0755 -mkdir /dev/pts /dev/shm -mount -t devpts devpts /dev/pts -echo "/sbin/mdev" > /proc/sys/kernel/hotplug -mdev -s diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/simple.script b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/simple.script deleted file mode 100644 index 5cc21b9de..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/simple.script +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh - -# udhcpc script edited by Tim Riker - -[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 - -RESOLV_CONF="/etc/resolv.conf" -[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" -[ -n "$subnet" ] && NETMASK="netmask $subnet" - -# return 0 if root is mounted on a network filesystem -root_is_nfs() { - grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts -} - -have_bin_ip=0 -if [ -x /bin/ip ]; then - have_bin_ip=1 -fi - -case "$1" in - deconfig) - if ! root_is_nfs ; then - if [ $have_bin_ip -eq 1 ]; then - ip addr flush dev $interface - ip link set dev $interface up - else - /sbin/ifconfig $interface 0.0.0.0 - fi - fi - ;; - - renew|bound) - if [ $have_bin_ip -eq 1 ]; then - ip addr add dev $interface local $ip/$mask $BROADCAST - else - /sbin/ifconfig $interface $ip $BROADCAST $NETMASK - fi - - if [ -n "$router" ] ; then - if ! root_is_nfs ; then - if [ $have_bin_ip -eq 1 ]; then - while ip route del default 2>/dev/null ; do - : - done - else - while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do - : - done - fi - fi - - metric=0 - for i in $router ; do - if [ $have_bin_ip -eq 1 ]; then - ip route add default via $i metric $((metric++)) - else - route add default gw $i dev $interface metric $((metric++)) 2>/dev/null - fi - done - fi - - echo -n > $RESOLV_CONF - [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF - for i in $dns ; do - echo adding dns $i - echo nameserver $i >> $RESOLV_CONF - done - ;; -esac - -exit 0 diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/syslog b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/syslog deleted file mode 100644 index 2944d3d06..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/syslog +++ /dev/null @@ -1,77 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: sysklogd -# Required-Start: $remote_fs $time -# Required-Stop: $remote_fs $time -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: System logger -### END INIT INFO - -set -e - -if [ -f /etc/syslog-startup.conf ]; then - . /etc/syslog-startup.conf - LOG_LOCAL=0 - LOG_REMOTE=0 - for D in $DESTINATION; do - if [ "$D" = "buffer" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -C$BUFFERSIZE" - LOG_LOCAL=1 - elif [ "$D" = "file" ]; then - if [ -n "$LOGFILE" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -O $LOGFILE" - fi - if [ -n "$ROTATESIZE" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -s $ROTATESIZE" - fi - if [ -n "$ROTATEGENS" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -b $ROTATEGENS" - fi - LOCAL=0 - elif [ "$D" = "remote" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -R $REMOTE" - LOG_REMOTE=1 - fi - done - if [ "$LOG_LOCAL" = "1" -a "$LOG_REMOTE" = "1" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -L" - fi - if [ "$REDUCE" = "yes" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -S" - fi - if [ "$DROPDUPLICATES" = "yes" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -D" - fi - if [ -n "$LOGLEVEL" ]; then - SYSLOG_ARGS="$SYSLOG_ARGS -l $LOGLEVEL" - fi -else - # default: log to 16K shm circular buffer - SYSLOG_ARGS="-C" -fi - -case "$1" in - start) - echo -n "Starting syslogd/klogd: " - start-stop-daemon -S -b -n syslogd -a /sbin/syslogd -- -n $SYSLOG_ARGS - start-stop-daemon -S -b -n klogd -a /sbin/klogd -- -n - echo "done" - ;; - stop) - echo -n "Stopping syslogd/klogd: " - start-stop-daemon -K -n syslogd - start-stop-daemon -K -n klogd - echo "done" - ;; - restart) - $0 stop - $0 start - ;; - *) - echo "Usage: syslog { start | stop | restart }" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/syslog-startup.conf b/meta-digi-del/recipes-core/busybox/busybox-1.20.2/syslog-startup.conf deleted file mode 100644 index fda450aa0..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox-1.20.2/syslog-startup.conf +++ /dev/null @@ -1,13 +0,0 @@ -# This configuration file is used by the busybox syslog init script, -# /etc/init.d/syslog[.busybox] to set syslog configuration at start time. - -DESTINATION=file # log destinations (buffer file remote) -LOGFILE=/var/log/messages # where to log (file) -REMOTE=loghost:514 # where to log (syslog remote) -REDUCE=no # reduce-size logging -DROPDUPLICATES=no # whether to drop duplicate log entries -#ROTATESIZE=0 # rotate log if grown beyond X [kByte] -#ROTATEGENS=3 # keep X generations of rotated logs -BUFFERSIZE=64 # size of circular buffer [kByte] -FOREGROUND=no # run in foreground (don't use!) -#LOGLEVEL=5 # local log level (between 1 and 8) diff --git a/meta-digi-del/recipes-core/busybox/busybox_1.20.2.bb b/meta-digi-del/recipes-core/busybox/busybox_1.20.2.bb deleted file mode 100644 index 6ca9b964c..000000000 --- a/meta-digi-del/recipes-core/busybox/busybox_1.20.2.bb +++ /dev/null @@ -1,46 +0,0 @@ -require recipes-core/busybox/busybox.inc - -DEPENDS += "libdigi" -PR = "r1" - -SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ - file://0001-del-baudrates.patch \ - file://0002-del-mdev_regulatory.patch \ - file://0003-del-flash_eraseall.patch \ - file://0004-kernel_ver.patch \ - file://defconfig \ - file://syslog \ - file://syslog-startup.conf \ - file://busybox-cron \ - file://busybox-httpd \ - file://busybox-udhcpd \ - file://hwclock.sh \ - file://simple.script \ - file://default.script \ - file://busybox-udhcpc \ - file://mdev \ - file://mdev.conf \ - file://adc \ - file://mmc \ - file://sd \ - file://ts \ - " - -SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c" -SRC_URI[tarball.sha256sum] = "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882" - -FILES_${PN}-mdev += "${base_libdir}/mdev/adc ${base_libdir}/mdev/mmc ${base_libdir}/mdev/sd ${base_libdir}/mdev/ts" - -EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" - -do_install_append() { - if grep "CONFIG_MDEV=y" ${WORKDIR}/defconfig; then - if grep "CONFIG_FEATURE_MDEV_CONF=y" ${WORKDIR}/defconfig; then - install -d ${D}${base_libdir}/mdev - install -m 0755 ${WORKDIR}/adc ${D}${base_libdir}/mdev/adc - install -m 0755 ${WORKDIR}/mmc ${D}${base_libdir}/mdev/mmc - install -m 0755 ${WORKDIR}/sd ${D}${base_libdir}/mdev/sd - install -m 0755 ${WORKDIR}/ts ${D}${base_libdir}/mdev/ts - fi - fi -} diff --git a/meta-digi-del/recipes-core/busybox/busybox_1.20.2.bbappend b/meta-digi-del/recipes-core/busybox/busybox_1.20.2.bbappend new file mode 100644 index 000000000..5b50db7a9 --- /dev/null +++ b/meta-digi-del/recipes-core/busybox/busybox_1.20.2.bbappend @@ -0,0 +1,29 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" +PR_append = "+del.r0" + +DEPENDS += "libdigi" + +SRC_URI += "file://0001-del-baudrates.patch \ + file://0002-del-mdev_regulatory.patch \ + file://0003-del-flash_eraseall.patch \ + file://defconfig \ + file://mdev.conf \ + file://adc \ + file://mmc \ + file://sd \ + file://ts \ + " + +FILES_${PN}-mdev += "${base_libdir}/mdev/adc ${base_libdir}/mdev/mmc ${base_libdir}/mdev/sd ${base_libdir}/mdev/ts" + +do_install_append() { + if grep "CONFIG_MDEV=y" ${WORKDIR}/defconfig; then + if grep "CONFIG_FEATURE_MDEV_CONF=y" ${WORKDIR}/defconfig; then + install -d ${D}${base_libdir}/mdev + install -m 0755 ${WORKDIR}/adc ${D}${base_libdir}/mdev/adc + install -m 0755 ${WORKDIR}/mmc ${D}${base_libdir}/mdev/mmc + install -m 0755 ${WORKDIR}/sd ${D}${base_libdir}/mdev/sd + install -m 0755 ${WORKDIR}/ts ${D}${base_libdir}/mdev/ts + fi + fi +}