[oe] [PATCH 1/7] busybox: factorize recipes

Khem Raj raj.khem at gmail.com
Sat Oct 30 00:13:48 UTC 2010


On (29/10/10 23:25), Eric Bénard wrote:
> Signed-off-by: Eric Bénard <eric at eukrea.com>

For patch 1 - 5

Acked-by: Khem Raj <raj.khem at gmail.com>

> ---
>  recipes/busybox/busybox_1.13.2.bb |   45 ++-------------------------
>  recipes/busybox/busybox_1.14.3.bb |   47 ++---------------------------
>  recipes/busybox/busybox_1.15.3.bb |   48 +++---------------------------
>  recipes/busybox/busybox_1.16.2.bb |   59 ++-----------------------------------
>  recipes/busybox/busybox_1.17.1.bb |   55 +---------------------------------
>  recipes/busybox/busybox_1.1x.inc  |   53 +++++++++++++++++++++++++++++++++
>  6 files changed, 69 insertions(+), 238 deletions(-)
>  create mode 100644 recipes/busybox/busybox_1.1x.inc
> 
> diff --git a/recipes/busybox/busybox_1.13.2.bb b/recipes/busybox/busybox_1.13.2.bb
> index a3acceb..0ffcb7f 100644
> --- a/recipes/busybox/busybox_1.13.2.bb
> +++ b/recipes/busybox/busybox_1.13.2.bb
> @@ -1,8 +1,8 @@
>  require busybox.inc
> +require busybox_1.1x.inc
>  PR = "${INC_PR}.3"
>  
> -SRC_URI = "\
> -  http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
> +SRC_URI += "\
>    file://busybox-1.13.2-awk.patch \
>    file://busybox-1.13.2-depmod.patch \
>    file://busybox-1.13.2-init.patch \
> @@ -16,45 +16,8 @@ SRC_URI = "\
>    file://busybox-1.13.2-unzip.patch \
>    file://busybox-1.13.2-wget.patch \
>    file://busybox-1.13.2-make382.patch \
> -  file://fdisk_nios2.patch \
> -  \
> -  file://udhcpscript.patch \
> -  file://udhcpc-fix-nfsroot.patch \
>    file://udhcpc-background.patch \
> -  file://B921600.patch \
> -  file://get_header_tar.patch \
> -  file://busybox-appletlib-dependency.patch \
> -  file://find-touchscreen.sh \
> -  file://busybox-cron \
> -  file://busybox-httpd \
> -  file://busybox-udhcpd \
> -  file://default.script file://simple.script \
> -  file://hwclock.sh \
> -  file://hwclock-default \
> -  file://mount.busybox \
> -  file://mountall \
> -  file://syslog \
> -  file://syslog.conf \
> -  file://umount.busybox \
> -  file://defconfig \
> -  file://mdev \
> -  file://mdev.conf \
>  "
> -SRC_URI[tarball.md5sum] = "9e2a604d18bef219a5a6bf3acf78b9e1"
> -SRC_URI[tarball.sha256sum] = "927774408bd982dd246fb716bb2e646ab0708ce321b42c5e271dc98c1f5d1dc8"
>  
> -EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
> -
> -do_configure_prepend () {
> -	if [ "${TARGET_ARCH}" = "avr32" ] ; then
> -		sed -i s:CONFIG_FEATURE_OSF_LABEL=y:CONFIG_FEATURE_OSF_LABEL=n: ${WORKDIR}/defconfig
> -	fi
> -}
> -
> -do_install_append() {
> -    install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
> -    install -d ${D}${sysconfdir}/init.d/
> -    install -d ${D}${sysconfdir}/mdev
> -    install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
> -    install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
> -}
> +SRC_URI[md5sum] = "9e2a604d18bef219a5a6bf3acf78b9e1"
> +SRC_URI[sha256sum] = "927774408bd982dd246fb716bb2e646ab0708ce321b42c5e271dc98c1f5d1dc8"
> diff --git a/recipes/busybox/busybox_1.14.3.bb b/recipes/busybox/busybox_1.14.3.bb
> index ff706f4..2fac528 100644
> --- a/recipes/busybox/busybox_1.14.3.bb
> +++ b/recipes/busybox/busybox_1.14.3.bb
> @@ -1,49 +1,8 @@
>  require busybox.inc
> +require busybox_1.1x.inc
>  PR = "${INC_PR}.1"
>  
>  DEFAULT_PREFERENCE = "-1"
>  
> -SRC_URI = "\
> -  http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
> -  file://fdisk_nios2.patch \
> -\
> -  file://udhcpscript.patch \
> -  file://udhcpc-fix-nfsroot.patch \
> -  file://B921600.patch \
> -  file://get_header_tar.patch \
> -  file://busybox-appletlib-dependency.patch \
> -  file://find-touchscreen.sh \
> -  file://busybox-cron \
> -  file://busybox-httpd \
> -  file://busybox-udhcpd \
> -  file://default.script file://simple.script \
> -  file://hwclock.sh \
> -  file://hwclock-default \
> -  file://mount.busybox \
> -  file://mountall \
> -  file://syslog \
> -  file://syslog.conf \
> -  file://umount.busybox \
> -  file://defconfig \
> -  file://mdev \
> -  file://mdev.conf \
> -"
> -
> -SRC_URI[tarball.md5sum] = "d170bf5f97a41aec3a505eab690d5699"
> -SRC_URI[tarball.sha256sum] = "e94df4f9063a1951b4e94e76148ed80e921737a89d97bc2c310a2a8927982e90"
> -
> -EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
> -
> -do_configure_prepend () {
> -	if [ "${TARGET_ARCH}" = "avr32" ] ; then
> -		sed -i s:CONFIG_FEATURE_OSF_LABEL=y:CONFIG_FEATURE_OSF_LABEL=n: ${WORKDIR}/defconfig
> -	fi
> -}
> -
> -do_install_append() {
> -    install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
> -    install -d ${D}${sysconfdir}/init.d/
> -    install -d ${D}${sysconfdir}/mdev
> -    install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
> -    install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
> -}
> +SRC_URI[md5sum] = "d170bf5f97a41aec3a505eab690d5699"
> +SRC_URI[sha256sum] = "e94df4f9063a1951b4e94e76148ed80e921737a89d97bc2c310a2a8927982e90"
> diff --git a/recipes/busybox/busybox_1.15.3.bb b/recipes/busybox/busybox_1.15.3.bb
> index 0924d3d..5106a58 100644
> --- a/recipes/busybox/busybox_1.15.3.bb
> +++ b/recipes/busybox/busybox_1.15.3.bb
> @@ -1,55 +1,17 @@
>  require busybox.inc
> +require busybox_1.1x.inc
>  PR = "${INC_PR}.4"
>  
> -SRC_URI = "\
> -  http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
> -  file://fdisk_nios2.patch \
> -  \
> -  file://udhcpscript.patch \
> -  file://udhcpc-fix-nfsroot.patch \
> -  file://B921600.patch \
> -  file://get_header_tar.patch \
> -  file://busybox-appletlib-dependency.patch \
> +SRC_URI += "\
>    file://0000-wget-no-check-certificate.patch \
> -  file://find-touchscreen.sh \
> -  file://busybox-cron \
> -  file://busybox-httpd \
> -  file://busybox-udhcpd \
> -  file://default.script file://simple.script \
> -  file://hwclock.sh \
> -  file://hwclock-default \
> -  file://mount.busybox \
> -  file://mountall \
> -  file://syslog \
> -  file://syslog.conf \
> -  file://umount.busybox \
> -  file://defconfig \
> -  file://mdev \
> -  file://mdev.conf \
>  "
> -SRC_URI[tarball.md5sum] = "6059ac9456de6fb18dc8ee4cd0ec9240"
> -SRC_URI[tarball.sha256sum] = "d74020ad2cc5a4dcc5109c44dbd0e22582d6ce42954b0f1ff29763c8c0ff03cb"
> +
> +SRC_URI[md5sum] = "6059ac9456de6fb18dc8ee4cd0ec9240"
> +SRC_URI[sha256sum] = "d74020ad2cc5a4dcc5109c44dbd0e22582d6ce42954b0f1ff29763c8c0ff03cb"
>  
>  # gcc 4.5 has this bug on thumb
>  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44557
>  # so add -fomit-frame-pointer
>  # this will be removed once the above bug is fixed.
>  
> -
>  CFLAGS_append = " -fomit-frame-pointer"
> -
> -EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
> -
> -do_configure_prepend () {
> -	if [ "${TARGET_ARCH}" = "avr32" ] ; then
> -		sed -i s:CONFIG_FEATURE_OSF_LABEL=y:CONFIG_FEATURE_OSF_LABEL=n: ${WORKDIR}/defconfig
> -	fi
> -}
> -
> -do_install_append() {
> -    install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
> -    install -d ${D}${sysconfdir}/init.d/
> -    install -d ${D}${sysconfdir}/mdev
> -    install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
> -    install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
> -}
> diff --git a/recipes/busybox/busybox_1.16.2.bb b/recipes/busybox/busybox_1.16.2.bb
> index b3fee02..b4aaa74 100644
> --- a/recipes/busybox/busybox_1.16.2.bb
> +++ b/recipes/busybox/busybox_1.16.2.bb
> @@ -1,62 +1,9 @@
>  require busybox.inc
> +require busybox_1.1x.inc
>  PR = "${INC_PR}.3"
>  
>  DEFAULT_PREFERENCE = "-1"
>  DEFAULT_PREFERENCE_shr = "1"
>  
> -SRC_URI = "\
> -  http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
> -  file://fdisk_nios2.patch \
> -  \
> -  file://udhcpscript.patch \
> -  file://udhcpc-fix-nfsroot.patch \
> -  file://B921600.patch \
> -  file://get_header_tar.patch \
> -  file://busybox-appletlib-dependency.patch \
> -#  file://0000-wget-no-check-certificate.patch \
> -  file://find-touchscreen.sh \
> -  file://busybox-cron \
> -  file://busybox-httpd \
> -  file://busybox-udhcpd \
> -  file://default.script file://simple.script \
> -  file://hwclock.sh \
> -  file://hwclock-default \
> -  file://mount.busybox \
> -  file://mountall \
> -  file://syslog \
> -  file://syslog.conf \
> -  file://umount.busybox \
> -  file://defconfig \
> -  file://mdev \
> -  file://mdev.conf \
> -"
> -
> -SRC_URI[tarball.md5sum] = "2ba980f720a5bdce4ec05423519acc35"
> -SRC_URI[tarball.sha256sum] = "3bf1b1a41294d25335abdd10c65cffdb01c36337ca011f1b38c6ad89590115ba"
> -
> -EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
> -
> -do_configure_prepend () {
> -	if [ "${TARGET_ARCH}" = "avr32" ] ; then
> -		sed -i s:CONFIG_FEATURE_OSF_LABEL=y:CONFIG_FEATURE_OSF_LABEL=n: ${WORKDIR}/defconfig
> -	fi
> -}
> -
> -do_install_append() {
> -    install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
> -    install -d ${D}${sysconfdir}/init.d/
> -    install -d ${D}${sysconfdir}/mdev
> -    install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
> -    install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
> -
> -    if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then
> -          install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
> -    fi
> -
> -    if grep "CONFIG_UDHCPC=y" ${WORKDIR}/defconfig; 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 ${WORKDIR}/default.script ${D}${datadir}/udhcpc/default.script
> -    fi
> -}
> +SRC_URI[md5sum] = "2ba980f720a5bdce4ec05423519acc35"
> +SRC_URI[sha256sum] = "3bf1b1a41294d25335abdd10c65cffdb01c36337ca011f1b38c6ad89590115ba"
> diff --git a/recipes/busybox/busybox_1.17.1.bb b/recipes/busybox/busybox_1.17.1.bb
> index 5a475b2..c16251c 100644
> --- a/recipes/busybox/busybox_1.17.1.bb
> +++ b/recipes/busybox/busybox_1.17.1.bb
> @@ -1,61 +1,8 @@
>  require busybox.inc
> +require busybox_1.1x.inc
>  PR = "${INC_PR}"
>  
>  DEFAULT_PREFERENCE = "-1"
>  
> -SRC_URI = "\
> -  http://www.busybox.net/downloads/busybox-${PV}.tar.bz2 \
> -  file://fdisk_nios2.patch \
> -  \
> -  file://udhcpscript.patch \
> -  file://udhcpc-fix-nfsroot.patch \
> -  file://B921600.patch \
> -  file://get_header_tar.patch \
> -  file://busybox-appletlib-dependency.patch \
> -#  file://0000-wget-no-check-certificate.patch \
> -  file://find-touchscreen.sh \
> -  file://busybox-cron \
> -  file://busybox-httpd \
> -  file://busybox-udhcpd \
> -  file://default.script file://simple.script \
> -  file://hwclock.sh \
> -  file://hwclock-default \
> -  file://mount.busybox \
> -  file://mountall \
> -  file://syslog \
> -  file://syslog.conf \
> -  file://umount.busybox \
> -  file://defconfig \
> -  file://mdev \
> -  file://mdev.conf \
> -"
> -
>  SRC_URI[md5sum] = "c7fe7533b7fc4018b0b49a05ee0ee601"
>  SRC_URI[sha256sum] = "bf9177810d7e151b0e662477c33b9afd062570e6298ec46f2a8397a6a839d164"
> -
> -EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
> -
> -do_configure_prepend () {
> -	if [ "${TARGET_ARCH}" = "avr32" ] ; then
> -		sed -i s:CONFIG_FEATURE_OSF_LABEL=y:CONFIG_FEATURE_OSF_LABEL=n: ${WORKDIR}/defconfig
> -	fi
> -}
> -
> -do_install_append() {
> -    install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
> -    install -d ${D}${sysconfdir}/init.d/
> -    install -d ${D}${sysconfdir}/mdev
> -    install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
> -    install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
> -
> -    if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then
> -          install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
> -    fi
> -
> -    if grep "CONFIG_UDHCPC=y" ${WORKDIR}/defconfig; 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 ${WORKDIR}/default.script ${D}${datadir}/udhcpc/default.script
> -    fi
> -}
> diff --git a/recipes/busybox/busybox_1.1x.inc b/recipes/busybox/busybox_1.1x.inc
> new file mode 100644
> index 0000000..df536f6
> --- /dev/null
> +++ b/recipes/busybox/busybox_1.1x.inc
> @@ -0,0 +1,53 @@
> +require busybox.inc
> +
> +SRC_URI = "\
> +  http://www.busybox.net/downloads/busybox-${PV}.tar.bz2 \
> +  file://fdisk_nios2.patch \
> +  file://udhcpscript.patch \
> +  file://udhcpc-fix-nfsroot.patch \
> +  file://B921600.patch \
> +  file://get_header_tar.patch \
> +  file://busybox-appletlib-dependency.patch \
> +  file://find-touchscreen.sh \
> +  file://busybox-cron \
> +  file://busybox-httpd \
> +  file://busybox-udhcpd \
> +  file://default.script file://simple.script \
> +  file://hwclock.sh \
> +  file://hwclock-default \
> +  file://mount.busybox \
> +  file://mountall \
> +  file://syslog \
> +  file://syslog.conf \
> +  file://umount.busybox \
> +  file://defconfig \
> +  file://mdev \
> +  file://mdev.conf \
> +"
> +
> +EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
> +
> +do_configure_prepend () {
> +	if [ "${TARGET_ARCH}" = "avr32" ] ; then
> +		sed -i s:CONFIG_FEATURE_OSF_LABEL=y:CONFIG_FEATURE_OSF_LABEL=n: ${WORKDIR}/defconfig
> +	fi
> +}
> +
> +do_install_append() {
> +    install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
> +    install -d ${D}${sysconfdir}/init.d/
> +    install -d ${D}${sysconfdir}/mdev
> +    install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
> +    install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
> +
> +    if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then
> +          install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
> +    fi
> +
> +    if grep "CONFIG_UDHCPC=y" ${WORKDIR}/defconfig; 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 ${WORKDIR}/default.script ${D}${datadir}/udhcpc/default.script
> +    fi
> +}
> -- 
> 1.6.3.3
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list