OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2012-2013 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | include $(TOPDIR)/rules.mk |
||
8 | include $(INCLUDE_DIR)/target.mk |
||
9 | |||
10 | PKG_NAME:=musl |
||
3 | office | 11 | PKG_VERSION:=1.1.19 |
12 | PKG_RELEASE=1 |
||
1 | office | 13 | |
14 | PKG_SOURCE_PROTO:=git |
||
15 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
||
3 | office | 16 | PKG_SOURCE_VERSION:=55df09bfccbfe21fc9dd7d8f94550c0ff25ace04 |
17 | PKG_MIRROR_HASH:=eb94e4e7e94221dd8890afd9b29e2562c36cf5585649035349ca1c6c1c354f2b |
||
1 | office | 18 | PKG_SOURCE_URL:=git://git.musl-libc.org/musl |
19 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz |
||
20 | |||
21 | LIBC_SO_VERSION:=$(PKG_VERSION) |
||
22 | PATCH_DIR:=$(PATH_PREFIX)/patches |
||
23 | |||
24 | BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) |
||
25 | HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR) |
||
26 | HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)-$(PKG_VERSION) |
||
27 | |||
28 | include $(INCLUDE_DIR)/host-build.mk |
||
29 | include $(INCLUDE_DIR)/hardening.mk |
||
30 | |||
31 | MUSL_CONFIGURE:= \ |
||
32 | $(TARGET_CONFIGURE_OPTS) \ |
||
33 | CFLAGS="$(TARGET_CFLAGS)" \ |
||
34 | CROSS_COMPILE="$(TARGET_CROSS)" \ |
||
35 | $(HOST_BUILD_DIR)/configure \ |
||
36 | --prefix=/ \ |
||
37 | --host=$(GNU_HOST_NAME) \ |
||
38 | --target=$(REAL_GNU_TARGET_NAME) \ |
||
39 | --disable-gcc-wrapper \ |
||
3 | office | 40 | --enable-debug |
1 | office | 41 | |
42 | define Host/Configure |
||
43 | ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) |
||
44 | ( cd $(HOST_BUILD_DIR); rm -f config.cache; \ |
||
45 | $(MUSL_CONFIGURE) \ |
||
46 | ); |
||
47 | endef |
||
48 | |||
49 | define Host/Clean |
||
50 | rm -rf \ |
||
51 | $(HOST_BUILD_DIR) \ |
||
52 | $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) \ |
||
53 | $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev |
||
54 | endef |