baremetal fix
[openadk.git] / package / squashfs / Makefile
blob77cc880aceefdb0507bf0e8072c6e457b5bdc40d
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:= squashfs
7 PKG_VERSION:= 4.2
8 PKG_RELEASE:= 1
9 PKG_HASH:= d9e0195aa922dbb665ed322b9aaa96e04a476ee650f39bbeadb0d00b24022e96
10 PKG_DESCR:= squashfs filesystem utilities
11 PKG_SECTION:= sys/fs
12 HOST_BUILDDEP:= xz-host
13 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=squashfs/}
15 DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
16 WRKDIST= ${WRKDIR}/$(PKG_NAME)${PKG_VERSION}
18 PKG_CFLINE_SQUASHFS:= depends on ADK_HOST_ONLY
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,SQUASHFS,squashfs,$(PKG_VERSION)-${PKG_RELEASE}))
25 HOST_STYLE:= manual
26 HOST_MAKE_FLAGS+= LZMA_SUPPORT=0 XATTR_SUPPORT=0 XZ_SUPPORT=1 EXTRA_LDFLAGS=$(LDFLAGS_FOR_BUILD)
28 host-build:
29 (cd ${WRKBUILD}/squashfs-tools && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
30 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
32 squashfs-hostinstall:
33 ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
34 ${INSTALL_BIN} ${WRKBUILD}/squashfs-tools/mksquashfs \
35 ${STAGING_HOST_DIR}/usr/bin
37 include ${ADK_TOPDIR}/mk/host-bottom.mk
38 include ${ADK_TOPDIR}/mk/pkg-bottom.mk