blob: 11d8cc9a4fc06a4c40bdb5bfd7d482a5cf1729b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include $(TOPDIR)/rules.mk
PKG_NAME:= libhugetlbfs
PKG_VERSION:= 2.11
PKG_RELEASE:= 1
PKG_MD5SUM:= 35e68f16b704f2e339622a8ca07fdee0
PKG_DESCR:= easy hugepage access
PKG_SECTION:= libs
PKG_URL:= http://libhugetlbfs.ozlabs.org/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libhugetlbfs/}
PKG_CFLINE_LIBHUGETLBFS:= depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
PKG_ARCH_DEPENDS:= x86 x86_64 arm
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBHUGETLBFS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
XAKE_FLAGS+= PREFIX=/usr DESTDIR=${WRKINST} ADK_ARCH=${CPU_ARCH}
ALL_TARGET:= libs tools
post-install:
$(INSTALL_DIR) $(IDIR_LIBHUGETLBFS)/usr/{bin,lib,share/libhugetlbfs/ldscripts}
$(INSTALL_BIN) $(WRKINST)/usr/bin/{cpupcstat,huge{adm,ctl,edit},pagesize} \
$(IDIR_LIBHUGETLBFS)/usr/bin
${INSTALL_DATA} ${WRKINST}/usr/lib/libhugetlbfs* \
${IDIR_LIBHUGETLBFS}/usr/lib
${INSTALL_BIN} ${WRKINST}/usr/share/libhugetlbfs/ld.hugetlbfs \
${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
${INSTALL_DATA} ${WRKINST}/usr/share/libhugetlbfs/ldscripts/* \
${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs/ldscripts
${CP} ${WRKINST}/usr/share/libhugetlbfs/ld \
${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
include ${TOPDIR}/mk/pkg-bottom.mk
|