|
@@ -114,7 +114,7 @@ do_prepare_config () {
|
|
|
export KCONFIG_NOTIMESTAMP=1
|
|
|
|
|
|
sed -e '/CONFIG_STATIC/d' \
|
|
|
- < ${WORKDIR}/defconfig > ${S}/.config
|
|
|
+ < ${UNPACKDIR}/defconfig > ${S}/.config
|
|
|
echo "# CONFIG_STATIC is not set" >> .config
|
|
|
for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
|
|
|
${S}/.config
|
|
@@ -280,67 +280,67 @@ do_install () {
|
|
|
fi
|
|
|
|
|
|
if grep -q "CONFIG_SYSLOGD=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/syslog ${D}${sysconfdir}/init.d/syslog
|
|
|
- install -m 644 ${WORKDIR}/syslog-startup.conf ${D}${sysconfdir}/syslog-startup.conf
|
|
|
- install -m 644 ${WORKDIR}/syslog.conf ${D}${sysconfdir}/syslog.conf
|
|
|
+ install -m 0755 ${UNPACKDIR}/syslog ${D}${sysconfdir}/init.d/syslog
|
|
|
+ install -m 644 ${UNPACKDIR}/syslog-startup.conf ${D}${sysconfdir}/syslog-startup.conf
|
|
|
+ install -m 644 ${UNPACKDIR}/syslog.conf ${D}${sysconfdir}/syslog.conf
|
|
|
fi
|
|
|
if grep -q "CONFIG_CROND=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/busybox-cron ${D}${sysconfdir}/init.d/
|
|
|
+ install -m 0755 ${UNPACKDIR}/busybox-cron ${D}${sysconfdir}/init.d/
|
|
|
fi
|
|
|
if grep -q "CONFIG_HTTPD=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/busybox-httpd ${D}${sysconfdir}/init.d/
|
|
|
+ install -m 0755 ${UNPACKDIR}/busybox-httpd ${D}${sysconfdir}/init.d/
|
|
|
install -d ${D}/srv/www
|
|
|
fi
|
|
|
if grep -q "CONFIG_UDHCPD=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
|
|
|
+ install -m 0755 ${UNPACKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
|
|
|
fi
|
|
|
if grep -q "CONFIG_HWCLOCK=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/
|
|
|
+ install -m 0755 ${UNPACKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/
|
|
|
fi
|
|
|
if grep -q "CONFIG_UDHCPC=y" ${B}/.config; then
|
|
|
install -d ${D}${sysconfdir}/udhcpc.d
|
|
|
install -d ${D}${datadir}/udhcpc
|
|
|
- install -m 0755 ${WORKDIR}/simple.script ${D}${sysconfdir}/udhcpc.d/50default
|
|
|
+ install -m 0755 ${UNPACKDIR}/simple.script ${D}${sysconfdir}/udhcpc.d/50default
|
|
|
sed -i "s:/SBIN_DIR/:${base_sbindir}/:" ${D}${sysconfdir}/udhcpc.d/50default
|
|
|
- install -m 0755 ${WORKDIR}/default.script ${D}${datadir}/udhcpc/default.script
|
|
|
+ install -m 0755 ${UNPACKDIR}/default.script ${D}${datadir}/udhcpc/default.script
|
|
|
fi
|
|
|
if grep -q "CONFIG_INETD=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/inetd ${D}${sysconfdir}/init.d/inetd.${BPN}
|
|
|
+ install -m 0755 ${UNPACKDIR}/inetd ${D}${sysconfdir}/init.d/inetd.${BPN}
|
|
|
sed -i "s:/usr/sbin/:${sbindir}/:" ${D}${sysconfdir}/init.d/inetd.${BPN}
|
|
|
- install -m 0644 ${WORKDIR}/inetd.conf ${D}${sysconfdir}/
|
|
|
+ install -m 0644 ${UNPACKDIR}/inetd.conf ${D}${sysconfdir}/
|
|
|
fi
|
|
|
if grep -q "CONFIG_MDEV=y" ${B}/.config; then
|
|
|
- install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/mdev
|
|
|
+ install -m 0755 ${UNPACKDIR}/mdev ${D}${sysconfdir}/init.d/mdev
|
|
|
if grep "CONFIG_FEATURE_MDEV_CONF=y" ${B}/.config; then
|
|
|
- install -m 644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/mdev.conf
|
|
|
+ install -m 644 ${UNPACKDIR}/mdev.conf ${D}${sysconfdir}/mdev.conf
|
|
|
install -d ${D}${sysconfdir}/mdev
|
|
|
- install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev
|
|
|
- install -m 0755 ${WORKDIR}/mdev-mount.sh ${D}${sysconfdir}/mdev
|
|
|
+ install -m 0755 ${UNPACKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev
|
|
|
+ install -m 0755 ${UNPACKDIR}/mdev-mount.sh ${D}${sysconfdir}/mdev
|
|
|
fi
|
|
|
fi
|
|
|
if grep -q "CONFIG_INIT=y" ${B}/.config && ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','busybox','true','false',d)}; then
|
|
|
- install -D -m 0755 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS
|
|
|
- install -D -m 0755 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK
|
|
|
- install -D -m 0755 ${WORKDIR}/rcS.default ${D}${sysconfdir}/default/rcS
|
|
|
+ install -D -m 0755 ${UNPACKDIR}/rcS ${D}${sysconfdir}/init.d/rcS
|
|
|
+ install -D -m 0755 ${UNPACKDIR}/rcK ${D}${sysconfdir}/init.d/rcK
|
|
|
+ install -D -m 0755 ${UNPACKDIR}/rcS.default ${D}${sysconfdir}/default/rcS
|
|
|
fi
|
|
|
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
|
if grep -q "CONFIG_KLOGD=y" ${B}/.config; then
|
|
|
install -d ${D}${systemd_system_unitdir}
|
|
|
- sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
|
|
|
+ sed 's,@base_sbindir@,${base_sbindir},g' < ${UNPACKDIR}/busybox-klogd.service.in \
|
|
|
> ${D}${systemd_system_unitdir}/busybox-klogd.service
|
|
|
fi
|
|
|
|
|
|
if grep -q "CONFIG_SYSLOGD=y" ${B}/.config; then
|
|
|
install -d ${D}${systemd_system_unitdir}
|
|
|
- sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
|
|
|
+ sed 's,@base_sbindir@,${base_sbindir},g' < ${UNPACKDIR}/busybox-syslog.service.in \
|
|
|
> ${D}${systemd_system_unitdir}/busybox-syslog.service
|
|
|
if [ ! -e ${D}${systemd_system_unitdir}/busybox-klogd.service ] ; then
|
|
|
sed -i '/klog/d' ${D}${systemd_system_unitdir}/busybox-syslog.service
|
|
|
fi
|
|
|
- if [ -f ${WORKDIR}/busybox-syslog.default ] ; then
|
|
|
+ if [ -f ${UNPACKDIR}/busybox-syslog.default ] ; then
|
|
|
install -d ${D}${sysconfdir}/default
|
|
|
- install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
|
|
|
+ install -m 0644 ${UNPACKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
|
|
|
fi
|
|
|
fi
|
|
|
fi
|