From 97ba83f17ab1410a66620809fdf05cd7bb69a5ab Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 4 Sep 2012 14:11:51 +0200 Subject: [PATCH] busybox: Target both edison and HEAD in this overlay One needs to use BBMASK or delete depending on the targeted OE-Core/Poky version. --- recipes-apps/busybox/busybox_1.18.5.bbappend | 20 +------------------- recipes-apps/busybox/busybox_1.19.4.bbappend | 1 + recipes-apps/busybox/busybox_sysmocom.inc | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 recipes-apps/busybox/busybox_1.19.4.bbappend create mode 100644 recipes-apps/busybox/busybox_sysmocom.inc diff --git a/recipes-apps/busybox/busybox_1.18.5.bbappend b/recipes-apps/busybox/busybox_1.18.5.bbappend index 9b1f78a..4b70c90 100644 --- a/recipes-apps/busybox/busybox_1.18.5.bbappend +++ b/recipes-apps/busybox/busybox_1.18.5.bbappend @@ -1,19 +1 @@ -SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" -FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:" -PRINC = "6" - -SRC_URI += "file://busybox-ifplugd.sh \ - file://ifplugd.sh" - -PACKAGES =+ "${PN}-ifplugd" - -FILES_${PN}-ifplugd = "${sysconfdir}/ifplugd.sh ${sysconfdir}/init.d/busybox-ifplugd.sh" - -INITSCRIPT_PACKAGES += "${PN}-ifplugd" -INITSCRIPT_NAME = "busybox-ifplugd.sh" - - -do_install_append() { - install -m 0755 ${WORKDIR}/ifplugd.sh ${D}${sysconfdir}/ - install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/ -} +require ${PN}_sysmocom.inc diff --git a/recipes-apps/busybox/busybox_1.19.4.bbappend b/recipes-apps/busybox/busybox_1.19.4.bbappend new file mode 100644 index 0000000..4b70c90 --- /dev/null +++ b/recipes-apps/busybox/busybox_1.19.4.bbappend @@ -0,0 +1 @@ +require ${PN}_sysmocom.inc diff --git a/recipes-apps/busybox/busybox_sysmocom.inc b/recipes-apps/busybox/busybox_sysmocom.inc new file mode 100644 index 0000000..9b1f78a --- /dev/null +++ b/recipes-apps/busybox/busybox_sysmocom.inc @@ -0,0 +1,19 @@ +SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:" +PRINC = "6" + +SRC_URI += "file://busybox-ifplugd.sh \ + file://ifplugd.sh" + +PACKAGES =+ "${PN}-ifplugd" + +FILES_${PN}-ifplugd = "${sysconfdir}/ifplugd.sh ${sysconfdir}/init.d/busybox-ifplugd.sh" + +INITSCRIPT_PACKAGES += "${PN}-ifplugd" +INITSCRIPT_NAME = "busybox-ifplugd.sh" + + +do_install_append() { + install -m 0755 ${WORKDIR}/ifplugd.sh ${D}${sysconfdir}/ + install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/ +}