1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. PKG_BUILDDEP:= cryptsetup lvm
  10. PKG_CFLINE_CRYPTINIT:= depends on ADK_TARGET_ROOTFS_ENCRYPTED
  11. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  12. NO_DISTFILES:= 1
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,CRYPTINIT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. do-build:
  19. ${TARGET_CC} ${TCPPFLAGS} ${TCFLAGS} -c -o ${WRKBUILD}/cryptinit.o \
  20. ${WRKBUILD}/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. @touch ${IDIR_CRYPTINIT}/.empty
  34. include ${TOPDIR}/mk/pkg-bottom.mk