Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. 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