Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/archive-patches/ct-ng-coolstream_hd1-new.config b/archive-patches/ct-ng-coolstream_hd1-new.config
- index 582cf10..7c2f9d5 100644
- --- a/archive-patches/ct-ng-coolstream_hd1-new.config
- +++ b/archive-patches/ct-ng-coolstream_hd1-new.config
- @@ -443,7 +443,7 @@ CT_LIBC_EGLIBC_V_2_13=y
- CT_EGLIBC_REVISION="HEAD"
- # CT_EGLIBC_HTTP is not set
- # CT_EGLIBC_CHECKOUT is not set
- -# CT_EGLIBC_OPT_SIZE is not set
- +CT_EGLIBC_OPT_SIZE=y
- # CT_EGLIBC_CUSTOM_CONFIG is not set
- CT_LIBC_newlib_AVAILABLE=y
- CT_LIBC_uClibc_AVAILABLE=y
- diff --git a/make/environment.mk b/make/environment.mk
- index 7b43002..bc7b701 100644
- --- a/make/environment.mk
- +++ b/make/environment.mk
- @@ -95,14 +95,15 @@ endif
- STATICLIB = $(STATIC_DIR)/lib
- TARGETLIB = $(TARGETPREFIX)/lib
- TARGETINCLUDE = $(TARGETPREFIX)/include
- -TARGET_CFLAGS = -pipe -O2 -g -I$(TARGETINCLUDE)
- -TARGET_CFLAGS_SMALL = -pipe -Os -g -I$(TARGETINCLUDE)
- +TARGET_OFLAG = -O2
- +ifeq ($(BOXSERIES), hd1)
- + TARGET_OFLAG = -Os
- +endif
- +TARGET_CFLAGS = -pipe $(TARGET_OFLAG) -g -I$(TARGETINCLUDE)
- TARGET_CPPFLAGS = $(TARGET_CFLAGS)
- -TARGET_CPPFLAGS_SMALL = $(TARGET_CFLAGS_SMALL)
- TARGET_CXXFLAGS = $(TARGET_CFLAGS)
- -TARGET_CXXFLAGS_SMALL = $(TARGET_CFLAGS_SMALL)
- -TARGET_LDFLAGS = -Wl,-O1 -L$(TARGETLIB)
- -TARGET_LDFLAGS_RPATH = -Wl,-O1 -L$(TARGETLIB) -Wl,-rpath-link,$(TARGETLIB)
- +TARGET_LDFLAGS = -Wl,$(TARGET_OFLAG) -L$(TARGETLIB)
- +TARGET_LDFLAGS_RPATH = -Wl,$(TARGET_OFLAG) -L$(TARGETLIB) -Wl,-rpath-link,$(TARGETLIB)
- LD_FLAGS = $(TARGET_LDFLAGS)
- VPATH = $(D)
- @@ -144,18 +145,6 @@ CONFIGURE = \
- $(BUILDENV) \
- ./configure $(CONFIGURE_OPTS)
- -BUILDENV_SMALL = \
- - CFLAGS="$(TARGET_CFLAGS_SMALL)" \
- - CPPFLAGS="$(TARGET_CPPFLAGS_SMALL)" \
- - CXXFLAGS="$(TARGET_CXXFLAGS_SMALL)" \
- - LDFLAGS="$(TARGET_LDFLAGS)" \
- - PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
- -
- -CONFIGURE_SMALL = \
- - test -f ./configure || ./autogen.sh && \
- - $(BUILDENV_SMALL) \
- - ./configure $(CONFIGURE_OPTS)
- -
- BUILDENV_RPATH = \
- CFLAGS="$(TARGET_CFLAGS)" \
- CPPFLAGS="$(TARGET_CPPFLAGS)" \
- diff --git a/make/neutrino.mk b/make/neutrino.mk
- index ce5ecfe..0f477d0 100644
- --- a/make/neutrino.mk
- +++ b/make/neutrino.mk
- @@ -18,11 +18,7 @@ endif
- ifeq ($(DEBUG), yes)
- N_CFLAGS += -ggdb3 -rdynamic
- else
- - ifeq ($(BOXSERIES), hd2)
- - N_CFLAGS += -g -O2
- - else
- - N_CFLAGS += -g -Os
- - endif
- + N_CFLAGS += -g $(TARGET_OFLAG)
- endif
- NEUTRINO_PKG_DEPS =
- @@ -33,7 +29,7 @@ N_LDFLAGS = -L$(TARGETLIB) -lcrypto -ldl -lz $(CORTEX-STRINGS)
- ifeq ($(DEBUG), yes)
- N_LDFLAGS += -Wl,-rpath-link,$(TARGETLIB)
- else
- - N_LDFLAGS += -Wl,-O2,-rpath-link,$(TARGETLIB)
- + N_LDFLAGS += -Wl,$(TARGET_OFLAG),-rpath-link,$(TARGETLIB)
- endif
- N_CONFIGURE_DEBUG =
- diff --git a/make/plugins-extra.mk b/make/plugins-extra.mk
- index 38011f9..7101047 100644
- --- a/make/plugins-extra.mk
- +++ b/make/plugins-extra.mk
- @@ -15,8 +15,8 @@ $(LIBPLUG)/links.so: $(D)/libpng $(LIBPLUG) $(VARCONF)
- export SYSROOT=$(TARGETPREFIX) && \
- export PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) && \
- export LD_LIBRARY_PATH=$(TARGETLIB) && \
- - export CFLAGS="-pipe -Os -g -I$(TARGETINCLUDE)" && \
- - export LIBS="$(CORTEX-STRINGS) -Wl,-O1 -L$(TARGETLIB)" && \
- + export CFLAGS="-pipe $(TARGET_OFLAG) -g -I$(TARGETINCLUDE)" && \
- + export LIBS="$(CORTEX-STRINGS) -Wl,$(TARGET_OFLAG) -L$(TARGETLIB)" && \
- ./configure \
- --host=$(TARGET) \
- --build=$(BUILD) \
- diff --git a/make/system-libs.mk b/make/system-libs.mk
- index 83a9d13..fa2fb6a 100644
- --- a/make/system-libs.mk
- +++ b/make/system-libs.mk
- @@ -402,7 +402,7 @@ $(D)/openthreads: $(SOURCE_DIR)/$(REPO_OPENTHREADS) | $(TARGETPREFIX)
- cmake . -DCMAKE_BUILD_TYPE="None" \
- -DCMAKE_SYSTEM_NAME="Linux" \
- -DCMAKE_SYSTEM_PROCESSOR="arm" \
- - -DCMAKE_CXX_FLAGS="-O2 -DNDEBUG $(OPENTHREADS_CONFIGURE)" \
- + -DCMAKE_CXX_FLAGS="$(TARGET_OFLAG) -DNDEBUG $(OPENTHREADS_CONFIGURE)" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_C_COMPILER="$(TARGET)-gcc" \
- -DCMAKE_CXX_COMPILER="$(TARGET)-g++" \
- diff --git a/make/system-tools-extra.mk b/make/system-tools-extra.mk
- index c9a9379..742c4af 100644
- --- a/make/system-tools-extra.mk
- +++ b/make/system-tools-extra.mk
- @@ -3,7 +3,7 @@
- $(D)/binutils: $(ARCHIVE)/binutils-$(BINUTILS_VER).tar.bz2 | $(TARGETPREFIX)
- $(UNTAR)/binutils-$(BINUTILS_VER).tar.bz2
- cd $(BUILD_TMP)/binutils-$(BINUTILS_VER) && \
- - $(CONFIGURE_SMALL) --target=$(TARGET) \
- + $(CONFIGURE) --target=$(TARGET) \
- --prefix= \
- --disable-multilib \
- --disable-werror \
- diff --git a/make/system-tools.mk b/make/system-tools.mk
- index 4a86083..a4d003d 100644
- --- a/make/system-tools.mk
- +++ b/make/system-tools.mk
- @@ -5,7 +5,7 @@ openvpn: openvpn-$(BOXSERIES)
- $(D)/openvpn-hd2: $(D)/lzo $(D)/openssl $(ARCHIVE)/openvpn-$(OPENVPN_VER).tar.xz | $(TARGETPREFIX)
- $(UNTAR)/openvpn-$(OPENVPN_VER).tar.xz
- cd $(BUILD_TMP)/openvpn-$(OPENVPN_VER) && \
- - $(BUILDENV_SMALL) ./configure \
- + $(BUILDENV) ./configure \
- --build=$(BUILD) \
- --host=$(TARGET) \
- --prefix= \
- @@ -33,7 +33,7 @@ $(D)/openssh: $(D)/openssl $(D)/zlib $(ARCHIVE)/openssh-$(OPENSSH_VER).tar.gz |
- $(UNTAR)/openssh-$(OPENSSH_VER).tar.gz
- cd $(BUILD_TMP)/openssh-$(OPENSSH_VER) && \
- export ac_cv_search_dlopen=no && \
- - $(BUILDENV_SMALL) ./configure \
- + $(BUILDENV) ./configure \
- --build=$(BUILD) \
- --host=$(TARGET) \
- --prefix= \
- @@ -172,7 +172,7 @@ $(D)/coreutils: $(ARCHIVE)/coreutils-$(COREUTILS_VER).tar.xz | $(TARGETPREFIX)
- cd $(BUILD_TMP)/coreutils-$(COREUTILS_VER) && \
- $(PATCH)/coreutils-fix-coolstream-build.patch && \
- autoreconf -fi && \
- - $(CONFIGURE_SMALL) --target=$(TARGET) \
- + $(CONFIGURE) --target=$(TARGET) \
- --prefix= \
- --enable-silent-rules \
- --disable-xattr \
- @@ -260,7 +260,7 @@ $(D)/smartmontools: $(ARCHIVE)/smartmontools-$(SMARTMON_VER).tar.gz | $(TARGETPR
- $(UNTAR)/smartmontools-$(SMARTMON_VER).tar.gz
- cd $(BUILD_TMP)/smartmontools-$(SMARTMON_VER) && \
- $(BUILDENV) \
- - $(CONFIGURE_SMALL) --target=$(TARGET) --prefix= && \
- + $(CONFIGURE) --target=$(TARGET) --prefix= && \
- $(MAKE) && \
- install -m755 smartctl $(TARGETPREFIX)/sbin/smartctl
- $(REMOVE)/smartmontools-$(SMARTMON_VER)
- @@ -295,7 +295,7 @@ $(D)/vsftpd: $(ARCHIVE)/vsftpd-3.0.3.tar.gz | $(TARGETPREFIX)
- $(PATCH)/vsftpd.diff && \
- $(PATCH)/vsftpd-ssl.diff && \
- make clean && \
- - TARGETPREFIX=$(TARGETPREFIX) make CC=$(TARGET)-gcc LIBS="-lcrypt -lcrypto -lssl" CFLAGS="-pipe -O2 -g -I$(TARGETINCLUDE)" LDFLAGS="$(TARGET_LDFLAGS_RPATH)"
- + TARGETPREFIX=$(TARGETPREFIX) make CC=$(TARGET)-gcc LIBS="-lcrypt -lcrypto -lssl" CFLAGS="-pipe $(TARGET_OFLAG) -g -I$(TARGETINCLUDE)" LDFLAGS="$(TARGET_LDFLAGS_RPATH)"
- install -d $(TARGETPREFIX)/share/empty
- install -D -m 755 $(BUILD_TMP)/vsftpd-3.0.3/vsftpd $(TARGETPREFIX)/sbin/vsftpd
- install -D -m 644 $(SCRIPTS)/vsftpd.conf $(TARGETPREFIX)/etc/vsftpd.conf
- @@ -336,7 +336,7 @@ $(D)/minicom: $(D)/libncurses $(ARCHIVE)/minicom-$(MINICOM_VER).tar.gz | $(TARGE
- $(UNTAR)/minicom-$(MINICOM_VER).tar.gz
- cd $(BUILD_TMP)/minicom-$(MINICOM_VER) && \
- $(PATCH)/minicom-fix-h-v-return-value-is-not-0.patch && \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --prefix= \
- --target=$(TARGET) \
- --disable-nls && \
- @@ -388,7 +388,7 @@ $(D)/bash: $(ARCHIVE)/bash-$(BASH_VER).tar.gz | $(TARGETPREFIX)
- for patch in $(PATCHES)/bash-$(BASH_MAJOR).$(BASH_MINOR)/*; do \
- patch -p0 -i $$patch; \
- done; \
- - $(CONFIGURE_SMALL) && \
- + $(CONFIGURE) && \
- $(MAKE) && \
- install -m 755 bash $(TARGETPREFIX)/bin
- $(REMOVE)/bash-$(BASH_VER)
- @@ -398,7 +398,7 @@ $(D)/e2fsprogs: $(ARCHIVE)/e2fsprogs-$(E2FSPROGS_VER).tar.gz | $(TARGETPREFIX)
- $(UNTAR)/e2fsprogs-$(E2FSPROGS_VER).tar.gz
- cd $(BUILD_TMP)/e2fsprogs-$(E2FSPROGS_VER) && \
- autoreconf -fi && \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --target=$(TARGET) \
- --prefix=/ \
- --infodir=/.remove \
- @@ -431,7 +431,7 @@ $(D)/e2fsprogs: $(ARCHIVE)/e2fsprogs-$(E2FSPROGS_VER).tar.gz | $(TARGETPREFIX)
- $(D)/ntfs-3g: $(ARCHIVE)/ntfs-3g_ntfsprogs-$(NTFS3G_VER).tgz | $(TARGETPREFIX)
- $(UNTAR)/ntfs-3g_ntfsprogs-$(NTFS3G_VER).tgz
- cd $(BUILD_TMP)/ntfs-3g_ntfsprogs-$(NTFS3G_VER) && \
- - CFLAGS="-pipe -Os -g" ./configure \
- + CFLAGS="-pipe $(TARGET_OFLAG) -g" ./configure \
- --build=$(BUILD) \
- --host=$(TARGET) \
- --prefix= \
- @@ -496,7 +496,7 @@ $(D)/samba-hd1: $(ARCHIVE)/samba-2.2.12.tar.gz | $(TARGETPREFIX)
- $(TARGETLIB)/codepages/unicode_map.ISO8859-15
- $(MAKE) -C $(BUILD_TMP)/samba-2.2.12/source distclean
- cd $(BUILD_TMP)/samba-2.2.12/source && \
- - $(BUILDENV_SMALL) \
- + $(BUILDENV) \
- ./configure \
- --build=$(BUILD) \
- --host=$(TARGET) \
- @@ -537,7 +537,7 @@ $(D)/samba-hd2: $(ARCHIVE)/samba-3.3.9.tar.gz $(D)/libiconv | $(TARGETPREFIX)
- cd source && \
- export CONFIG_SITE=$(PATCHES)/samba-3.3.9-config.site && \
- ./autogen.sh && \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --build=$(BUILD) \
- --host=$(TARGET) \
- --target=$(TARGET) \
- @@ -590,7 +590,7 @@ $(D)/dropbear: $(D)/zlib $(ARCHIVE)/dropbear-$(DROPBEAR_VER).tar.bz2 | $(TARGETP
- $(D)/sg3-utils: $(ARCHIVE)/sg3_utils-$(SG3-UTILS_VER).tar.xz | $(TARGETPREFIX)
- $(UNTAR)/sg3_utils-$(SG3-UTILS_VER).tar.xz
- cd $(BUILD_TMP)/sg3_utils-$(SG3-UTILS_VER) && \
- - $(CONFIGURE_SMALL) --prefix= --mandir=/.remove && \
- + $(CONFIGURE) --prefix= --mandir=/.remove && \
- $(MAKE) && \
- cp -a src/.libs/sg_start $(TARGETPREFIX)/bin && \
- cp -a lib/.libs/libsgutils2.so.2.0.0 $(TARGETLIB) && \
- @@ -636,7 +636,7 @@ $(D)/wpa_supplicant: $(D)/openssl $(ARCHIVE)/wpa_supplicant-0.7.3.tar.gz | $(TAR
- $(UNTAR)/wpa_supplicant-0.7.3.tar.gz
- pushd $(BUILD_TMP)/wpa_supplicant-0.7.3/wpa_supplicant && \
- cp $(PATCHES)/wpa_supplicant_config .config && \
- - CC=$(TARGET)-gcc CFLAGS="$(TARGET_CFLAGS_SMALL)" CXXFLAGS="$(TARGET_CXXFLAGS_SMALL)" LDFLAGS="$(TARGET_LDFLAGS)" \
- + CC=$(TARGET)-gcc CFLAGS="$(TARGET_CFLAGS)" CXXFLAGS="$(TARGET_CXXFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" \
- $(MAKE)
- cp -f $(BUILD_TMP)/wpa_supplicant-0.7.3/wpa_supplicant/wpa_cli $(TARGETPREFIX)/sbin/wpa_cli
- cp -f $(BUILD_TMP)/wpa_supplicant-0.7.3/wpa_supplicant/wpa_passphrase $(TARGETPREFIX)/sbin/wpa_passphrase
- @@ -715,7 +715,7 @@ $(D)/bc: $(ARCHIVE)/bc-1.06.tar.gz | $(TARGETPREFIX)
- $(UNTAR)/bc-1.06.tar.gz
- cd $(BUILD_TMP)/bc-1.06 && \
- autoreconf -fi && \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --target=$(TARGET) \
- --prefix= \
- --mandir=/.remove \
- @@ -731,7 +731,7 @@ $(D)/usbutils: $(D)/libusb_compat $(ARCHIVE)/usbutils-007.tar.xz | $(TARGETPREFI
- cd $(BUILD_TMP)//usbutils-007 && \
- $(PATCH)/usbutils-avoid-dependency-on-bash.patch && \
- $(PATCH)/usbutils-fix-null-pointer-crash.patch && \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --target=$(TARGET) \
- --prefix= \
- --mandir=/.remove \
- @@ -746,7 +746,7 @@ $(D)/usbutils: $(D)/libusb_compat $(ARCHIVE)/usbutils-007.tar.xz | $(TARGETPREFI
- $(REMOVE)/usbutils-007
- touch $@
- -DOSFSTOOLS_CFLAGS = $(TARGET_CFLAGS_SMALL) -D_GNU_SOURCE -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
- +DOSFSTOOLS_CFLAGS = $(TARGET_CFLAGS) -D_GNU_SOURCE -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
- DOSFSTOOLS_DEPS =
- DOSFSTOOLS_LDFLAGS = $(TARGET_LDFLAGS)
- ifeq ($(BOXSERIES), hd2)
- @@ -758,7 +758,7 @@ $(D)/dosfstools: $(DOSFSTOOLS_DEPS) $(ARCHIVE)/dosfstools-$(DOSFSTOOLS_VER).tar.
- $(UNTAR)/dosfstools-$(DOSFSTOOLS_VER).tar.xz
- set -e; cd $(BUILD_TMP)/dosfstools-$(DOSFSTOOLS_VER); \
- autoreconf -fi; \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --prefix= \
- --mandir=/.remove \
- --docdir=/.remove \
- @@ -842,7 +842,7 @@ $(D)/wget: $(D)/libiconv $(D)/openssl $(ARCHIVE)/wget-$(WGET_VER).tar.gz | $(TAR
- $(PATCH)/wget-$(WGET_VER)-remove-hardcoded-engine-support-for-openss.patch && \
- $(PATCH)/wget-$(WGET_VER)-set-check_cert-false-by-default.patch && \
- $(PATCH)/wget-$(WGET_VER)-change_DEFAULT_LOGFILE.patch && \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --target=$(TARGET) \
- --prefix= \
- --datarootdir=/.remove \
- @@ -901,7 +901,7 @@ $(D)/exfat-utils: $(ARCHIVE)/exfat-utils-$(EXFAT_UTILS_VER).tar.gz $(D)/fuse-exf
- $(UNTAR)/exfat-utils-$(EXFAT_UTILS_VER).tar.gz
- pushd $(BUILD_TMP)/exfat-utils-$(EXFAT_UTILS_VER); \
- autoreconf -fi; \
- - $(CONFIGURE_SMALL) \
- + $(CONFIGURE) \
- --prefix= \
- --docdir=/.remove \
- --mandir=/.remove \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement