Makefile 1.2 KB

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