Makefile 1.1 KB

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