aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/common.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-01 19:50:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-10-01 19:50:01 +0000
commit57a70e8a644d10029d6e0d519d4b22139f64777d (patch)
tree3fbc1f59172d52cfbf343b0c270edbf8634dcacd /toolchain/uClibc/common.mk
parent7ad419a9f1ad41f30e3dffcea8c0132c32ebefcc (diff)
downloadupstream-57a70e8a644d10029d6e0d519d4b22139f64777d.tar.gz
upstream-57a70e8a644d10029d6e0d519d4b22139f64777d.tar.bz2
upstream-57a70e8a644d10029d6e0d519d4b22139f64777d.zip
toolchain/uClibc: add support of uClibc-ng
uClibc-ng is a spin-off of original uClibc, see http://www.uclibc-ng.org/ We try to regularly add changes from uClibc to uClibc-ng. We even sent patches and bug reports to the uClibc mailing list. The config file is compatible between uClibc-ng 1.0 and uClibc git master. This might change in the future. Our main goal is to provide regularly a stable and tested release to make embedded system developers happy. The main advantage of uClibc-ng over olde good uClibc is regular releases so there's no need to keep tons of patches on top of years old 0.9.33.2 Build-tested for [1] ARM: Sunxi generic [2] MIPS: Netgear WNDR3600/3700/3800 Run-tested for [yet out of the tree] Synopsys Designware ARC AXS101. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Waldemar Brodkorb <wbx@uclibc-ng.org> Cc: Mathieu Olivari <mathieu@codeaurora.org> Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Crispin <blogic@openwrt.org> SVN-Revision: 47077
Diffstat (limited to 'toolchain/uClibc/common.mk')
-rw-r--r--toolchain/uClibc/common.mk15
1 files changed, 12 insertions, 3 deletions
diff --git a/toolchain/uClibc/common.mk b/toolchain/uClibc/common.mk
index 53a844318b..026d69de99 100644
--- a/toolchain/uClibc/common.mk
+++ b/toolchain/uClibc/common.mk
@@ -7,15 +7,24 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/target.mk
-PKG_NAME:=uClibc
PKG_VERSION:=$(call qstrip,$(CONFIG_UCLIBC_VERSION))
+
+ifeq ($(CONFIG_UCLIBC_VERSION_NG),y)
+PKG_NAME:=uClibc-ng
+PKG_SOURCE_URL = http://downloads.uclibc-ng.org/releases/$(PKG_VERSION)/
+PATCH_DIR:=$(PATH_PREFIX)/patches-ng-$(PKG_VERSION)
+CONFIG_DIR:=$(PATH_PREFIX)/config-ng-$(PKG_VERSION)
+else
+PKG_NAME:=uClibc
PKG_SOURCE_URL:=http://www.uclibc.org/downloads
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-LIBC_SO_VERSION:=$(PKG_VERSION)
PATCH_DIR:=$(PATH_PREFIX)/patches-$(PKG_VERSION)
CONFIG_DIR:=$(PATH_PREFIX)/config-$(PKG_VERSION)
+endif
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+LIBC_SO_VERSION:=$(PKG_VERSION)
PKG_MD5SUM_0.9.33.2 = a338aaffc56f0f5040e6d9fa8a12eda1
+PKG_MD5SUM_1.0.6 = dfcc780bf2c7e2e42209bbb572e035cf
PKG_MD5SUM=$(PKG_MD5SUM_$(PKG_VERSION))
HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)-$(PKG_VERSION)