Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= adkinstall
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 5
  7. PKG_DESCR:= openadk installer
  8. PKG_SECTION:= base
  9. PKG_DEPENDS:= parted sfdisk e2fsprogs
  10. PKG_URL:= http://www.openadk.org/
  11. PKG_TARGET_DEPENDS:= alix wrap routerboard foxg20
  12. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  13. NO_DISTFILES:= 1
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,ADKINSTALL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. pre-configure:
  20. mkdir -p ${WRKBUILD}
  21. do-install:
  22. ${INSTALL_DIR} $(IDIR_ADKINSTALL)/sbin
  23. ifeq ($(ADK_LINUX_MIPS_RB532),y)
  24. ${INSTALL_BIN} ./src/adkinstall.rb532 \
  25. $(IDIR_ADKINSTALL)/sbin/adkinstall
  26. else ifeq ($(ADK_LINUX_ARM_FOXG20),y)
  27. ${INSTALL_BIN} ./src/adkinstall.foxg20 \
  28. $(IDIR_ADKINSTALL)/sbin/adkinstall
  29. else ifeq ($(ADK_LINUX_MIPS_RB4XX),y)
  30. ${INSTALL_BIN} ./src/adkinstall.rb4xx \
  31. $(IDIR_ADKINSTALL)/sbin/adkinstall
  32. else
  33. ${INSTALL_BIN} ./src/adkinstall $(IDIR_ADKINSTALL)/sbin
  34. endif
  35. include ${TOPDIR}/mk/pkg-bottom.mk