Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:= busybox
  7. PKG_VERSION:= 1.13.4
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 6f86b4aa466f4b492c9468ba9500976a
  10. MASTER_SITES:= http://www.busybox.net/downloads/
  11. include $(TOPDIR)/mk/package.mk
  12. $(eval $(call PKG_template,BUSYBOX,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
  13. #rebuild:
  14. # @rm $(WRKBUILD)/.configure_done
  15. do-configure:
  16. grep BUSYBOX_ $(TOPDIR)/.config|sed -e 's/BUSYBOX_/CONFIG_/' > \
  17. ${WRKBUILD}/.config
  18. $(SED) 's@IDIR@${WRKINST}' ${WRKBUILD}/.config
  19. yes '' | \
  20. $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
  21. EXTRA_CFLAGS="$(TARGET_CFLAGS)" IPKG_ARCH="$(ARCH)" \
  22. ARCH="$(ARCH)" -C $(WRKBUILD) oldconfig
  23. do-build:
  24. $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
  25. IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" -C $(WRKBUILD)
  26. do-install: ${TOPDIR}/.config
  27. $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
  28. IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" -C $(WRKBUILD) install
  29. ifeq ($(DEBUG),1)
  30. ${INSTALL_BIN} $(WRKBUILD)/busybox_unstripped \
  31. $(IDIR_BUSYBOX)/bin/busybox
  32. endif
  33. $(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/
  34. $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/init.d/
  35. $(INSTALL_BIN) ./files/syslog.init \
  36. $(IDIR_BUSYBOX)/etc/init.d/syslog
  37. $(INSTALL_BIN) ./files/network.init \
  38. $(IDIR_BUSYBOX)/etc/init.d/network
  39. $(INSTALL_BIN) ./files/crond.init \
  40. $(IDIR_BUSYBOX)/etc/init.d/crond
  41. ${INSTALL_BIN} files/inetd.init \
  42. ${IDIR_BUSYBOX}/etc/init.d/inetd
  43. include ${TOPDIR}/mk/pkg-bottom.mk