Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= 1.0.2
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= cryptsetup
  8. PKG_DESCR:= init for encrypted rootfilesystem
  9. PKG_SECTION:= base
  10. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  11. NO_DISTFILES:= 1
  12. include ${TOPDIR}/mk/package.mk
  13. CONFIG_STYLE:= manual
  14. BUILD_STYLE:= manual
  15. INSTALL_STYLE:= manual
  16. do-build:
  17. ${TARGET_CC} ${TCPPFLAGS} ${TCFLAGS} -c -o ${WRKBUILD}/cryptinit.o \
  18. ${WRKBUILD}/cryptinit.c
  19. ( cd ${WRKBUILD}; \
  20. ${TARGET_CC} -static -o cryptinit cryptinit.o \
  21. ${STAGING_DIR}/usr/lib/libcryptsetup.a \
  22. -L${STAGING_DIR}/lib -L${STAGING_DIR}/usr/lib \
  23. -ldevmapper -lpthread \
  24. ${STAGING_DIR}/usr/lib/libgcrypt.a \
  25. ${STAGING_DIR}/usr/lib/libgpg-error.a \
  26. -luuid -Wl,--rpath -Wl,${STAGING_DIR}/usr/lib \
  27. );
  28. do-install:
  29. $(CP) ./files/initramfs_list $(LINUX_DIR)
  30. $(CP) ${WRKBUILD}/cryptinit $(LINUX_DIR)
  31. include ${TOPDIR}/mk/pkg-bottom.mk