Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= cryptinit
  5. PKG_VERSION:= 2.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= init for encrypted rootfilesystem
  8. PKG_SECTION:= base
  9. PKG_DEPENDS:= cryptsetup
  10. PKG_CFLINE_CRYPTINIT:= select BUSYBOX_STTY@
  11. PKG_CFLINE_CRYPTINIT+= select BUSYBOX_SWITCH_ROOT@
  12. PKG_FLAVOURS_CRYPTINIT:=SC NO_GRUB
  13. PKGFD_NO_GRUB:= predefine root/swap partition (without grub)
  14. PKGFD_SC:= with smartcard support
  15. PKGFS_SC:= ccid openct opensc pcsc-lite
  16. PKGFB_SC:= ccid openct opensc pcsc-lite
  17. PKG_FLAVOURS_STRING_CRYPTINIT:= ROOT SWAP
  18. PKGFD_ROOT:= root partition
  19. PKGFX_ROOT:= /dev/sda2
  20. PKGFC_ROOT:= depends on ADK_PACKAGE_CRYPTINIT_NO_GRUB
  21. PKGFD_SWAP:= swap partition
  22. PKGFX_SWAP:= /dev/sda3
  23. PKGFC_SWAP:= depends on ADK_PACKAGE_CRYPTINIT_NO_GRUB
  24. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  25. NO_DISTFILES:= 1
  26. include ${TOPDIR}/mk/package.mk
  27. $(eval $(call PKG_template,CRYPTINIT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. CONFIG_STYLE:= manual
  29. BUILD_STYLE:= manual
  30. INSTALL_STYLE:= manual
  31. do-install:
  32. $(INSTALL_DIR) $(IDIR_CRYPTINIT)/sbin
  33. $(TARGET_CC) $(TARGET_CFLAGS) -Wall -o $(IDIR_CRYPTINIT)/sbin/p \
  34. ./src/p.c
  35. ifeq ($(ADK_PACKAGE_CRYPTINIT_SC),y)
  36. $(INSTALL_BIN) ./src/cryptinitsc $(IDIR_CRYPTINIT)/cryptinit
  37. else
  38. $(INSTALL_BIN) ./src/cryptinit $(IDIR_CRYPTINIT)/
  39. endif
  40. include ${TOPDIR}/mk/pkg-bottom.mk