1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
6 PKG_NAME
:= libhugetlbfs
9 PKG_HASH
:= e02a612eb64386d16270ad4f8ea0196f941f35eba3f651683564d149195ad0bb
10 PKG_DESCR
:= easy hugepage access
11 PKG_SECTION
:= libs
/misc
12 PKG_URL
:= http
://libhugetlbfs.ozlabs.org
/
13 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=libhugetlbfs
/}
16 PKG_LIBC_DEPENDS
:= glibc musl
17 PKG_ARCH_DEPENDS
:= x86 x86_64
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
20 include $(ADK_TOPDIR
)/mk
/package.mk
22 $(eval
$(call PKG_template
,LIBHUGETLBFS
,libhugetlbfs
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
25 XAKE_FLAGS
+= PREFIX
=/usr DESTDIR
=${WRKINST} ADK_ARCH
=${ADK_TARGET_CPU_ARCH}
26 ALL_TARGET
:= libs tools
29 $(INSTALL_DIR
) $(IDIR_LIBHUGETLBFS
)/usr
/{bin
,lib
,share
/libhugetlbfs
/ldscripts
}
30 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/{cpupcstat
,huge
{adm
,ctl
,edit
},pagesize
} \
31 $(IDIR_LIBHUGETLBFS
)/usr
/bin
32 ${INSTALL_DATA} ${WRKINST}/usr
/lib
/libhugetlbfs
* \
33 ${IDIR_LIBHUGETLBFS}/usr
/lib
34 ${INSTALL_BIN} ${WRKINST}/usr
/share
/libhugetlbfs
/ld.hugetlbfs \
35 ${IDIR_LIBHUGETLBFS}/usr
/share
/libhugetlbfs
36 ${INSTALL_DATA} ${WRKINST}/usr
/share
/libhugetlbfs
/ldscripts
/* \
37 ${IDIR_LIBHUGETLBFS}/usr
/share
/libhugetlbfs
/ldscripts
38 ${CP} ${WRKINST}/usr
/share
/libhugetlbfs
/ld \
39 ${IDIR_LIBHUGETLBFS}/usr
/share
/libhugetlbfs
41 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk