2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
10 PKG_CPE_ID
:=cpe
:/a
:gnu
:coreutils
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=@GNU
/coreutils
15 PKG_HASH
:=5f600d9093973b0afe25393d9bc18c44f2232657f4ca0d95ea31c702eb66b739
17 HOST_BUILD_PARALLEL
:= 1
19 PKG_PROGRAMS
:=date readlink touch ln chown ginstall
21 include $(INCLUDE_DIR
)/host-build.mk
23 export GNULIB_SRCDIR
:=$(HOST_GNULIB_SRCDIR
)
34 HOST_CONFIGURE_ARGS
+= \
36 --enable-install-program
=$(subst $(space
),$(comma
),$(strip $(PKG_PROGRAMS
)))
39 $(AM_TOOL_PATHS_FAKE
) \
40 PROGRAMS
="$(patsubst %,src/%,$(PKG_PROGRAMS))" \
41 LIBRARIES
= MANS
= SUBDIRS
=.
45 cd
$(HOST_BUILD_DIR
); \
46 $(AM_TOOL_PATHS_FAKE
) \
52 --gnulib-srcdir
=$(GNULIB_SRCDIR
) \
57 $(call Host
/Prepare
/Default
)
58 $(if
$(QUILT
),,$(call Host
/Bootstrap
))
62 $(if
$(QUILT
),$(call Host
/Bootstrap
))
63 $(foreach src
,$(HOST_GNULIB_SKIP
),mv
-f
$(HOST_BUILD_DIR
)/$(src
)~
$(HOST_BUILD_DIR
)/$(src
) || true
; )
64 $(call Host
/Configure
/Default
)
68 $(INSTALL_DIR
) $(1)/bin
69 $(INSTALL_BIN
) $(patsubst %,$(HOST_BUILD_DIR
)/src
/%,$(PKG_PROGRAMS
)) $(1)/bin
/
70 ln
-sf ginstall
$(1)/bin
/install
74 rm -f
$(STAGING_DIR_HOST
)/bin
/install
75 -$(call Host
/Compile
/Default
,uninstall)
78 $(eval
$(call HostBuild
))