12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include $(TOPDIR)/rules.mk
- PKG_NAME:= busybox
- PKG_VERSION:= 1.18.1
- PKG_RELEASE:= 3
- PKG_MD5SUM:= f15fe752d8b7012aa5e59f83b88ccb1c
- PKG_DESCR:= Core utilities for embedded systems
- PKG_SECTION:= base
- PKG_URL:= http://www.busybox.net/
- PKG_SITES:= http://www.busybox.net/downloads/
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
- PKG_SUBPKGS:= BUSYBOX UDHCPD
- PKGSD_UDHCPD:= uDHCPD meta package
- PKGSC_UDHCPD:= net
- include $(TOPDIR)/mk/package.mk
- $(eval $(call PKG_template,BUSYBOX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- $(eval $(call PKG_template,UDHCPD,udhcpd,${PKG_VERSION}-${PKG_RELEASE},busybox,${PKGSD_UDHCPD},${PKGSC_UDHCPD}))
- CONFIG_STYLE:= manual
- BUILD_STYLE:= manual
- INSTALL_STYLE:= manual
- do-configure:
- grep BUSYBOX_ $(TOPDIR)/.config|sed -e 's/BUSYBOX_/CONFIG_/' > \
- ${WRKBUILD}/.config
- $(SED) 's;@IDIR@;${WRKINST};' ${WRKBUILD}/.config
- ifeq ($(ADK_NATIVE),y)
- yes '' | \
- $(MAKE) V=1 \
- IPKG_ARCH="$(CPU_ARCH)" \
- ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) oldconfig $(MAKE_TRACE)
- else
- yes '' | \
- $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- EXTRA_CFLAGS="$(TARGET_CFLAGS)" IPKG_ARCH="$(CPU_ARCH)" \
- ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) oldconfig $(MAKE_TRACE)
- endif
- do-build:
- ifeq ($(ADK_NATIVE),y)
- $(MAKE) V=1 \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) busybox
- else
- $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) busybox
- endif
- do-install:
- ifeq ($(ADK_NATIVE),y)
- $(MAKE) V=1 \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) install $(MAKE_TRACE)
- else
- $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) install $(MAKE_TRACE)
- endif
- $(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/
- ifeq ($(ADK_DEBUG),y)
- ${INSTALL_BIN} $(WRKBUILD)/busybox_unstripped \
- $(IDIR_BUSYBOX)/bin/busybox
- endif
- ifneq ($(strip ${ADK_PACKAGE_CFGFS}),)
- cd ${IDIR_BUSYBOX}/sbin && rm -f halt poweroff reboot
- endif
- udhcpd-install:
- ${INSTALL_DIR} ${IDIR_UDHCPD}/etc/
- ${INSTALL_DATA} ./files/udhcpd.conf ${IDIR_UDHCPD}/etc/
- include ${TOPDIR}/mk/pkg-bottom.mk
|