2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/coreutils
16 PKG_MD5SUM:=bad596d9654e299eedea0eaf93f178fa
17 PKG_BUILD_DEPENDS:=libpthread
19 include $(INCLUDE_DIR)/package.mk
22 base64 basename cat chcon chgrp chmod chown chroot cksum comm cp \
23 csplit cut date dd dir dircolors dirname du echo env expand expr \
24 factor false fmt fold groups head hostid id install join kill link \
25 ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup nproc \
26 od paste pathchk pinky pr printenv printf ptx pwd readlink rm rmdir \
27 runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf \
28 sleep sort split stat stdbuf stty su sum sync tac tail tee test timeout \
29 touch tr true truncate tsort tty uname unexpand uniq unlink uptime users \
30 vdir wc who whoami yes
32 define Package/coreutils/Default
35 TITLE:=The GNU core utilities
36 URL:=http://www.gnu.org/software/coreutils/
39 define Package/coreutils
40 $(call Package/coreutils/Default)
41 TITLE:=The GNU core utilities
45 define Package/coreutils/description
46 Full versions of standard GNU utilities. Normally, you would not
47 use this package, since the functionality in BusyBox is more than
48 sufficient and much smaller.
53 $(call Package/coreutils/Default)
55 TITLE:=Utility $(2) from the GNU core utilities
58 define Package/$(1)/description
59 Full version of standard GNU $(2) utility. Normally, you would not
60 use this package, since the functionality in BusyBox is more than
65 $(foreach a,$(COREUTILS_APPLETS),$(eval $(call GenPlugin,coreutils-$(a),$(a))))
68 gl_cv_func_mbrtowc_incomplete_state=yes \
69 gl_cv_func_mbrtowc_retval=yes \
70 gl_cv_func_wcrtomb_retval=yes
72 ifneq ($(CONFIG_USE_UCLIBC),)
74 ac_cv_type_pthread_spinlock_t=$(if $(filter 0.9.30% 0.9.2% 0.9.31%,$(call qstrip,$(CONFIG_UCLIBC_VERSION))),no,yes)
78 --enable-install-program=su
81 $(MAKE) -C $(PKG_BUILD_DIR) \
82 DESTDIR="$(PKG_INSTALL_DIR)" \
84 all install install-root
87 define Package/coreutils/install
92 define Package/$(1)/install
93 $(INSTALL_DIR) $$(1)/usr/bin
94 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $$(1)/usr/bin/
97 $$(eval $$(call BuildPackage,$(1)))
100 $(eval $(call BuildPackage,coreutils))
102 $(foreach a,$(COREUTILS_APPLETS),$(eval $(call BuildPlugin,coreutils-$(a),$(a))))