summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/libevent/libevent.mk9
-rw-r--r--package/libgcrypt/libgcrypt.mk7
-rw-r--r--package/liblockfile/liblockfile.mk29
-rw-r--r--package/libsndfile/libsndfile.mk10
-rw-r--r--package/libtool/libtool.mk28
-rw-r--r--package/libvorbis/Config.in7
-rw-r--r--package/libvorbis/libvorbis.mk13
-rw-r--r--package/lighttpd/lighttpd.mk14
-rw-r--r--package/openntpd/openntpd.mk2
-rw-r--r--package/sed/sed.mk51
-rw-r--r--project/project.mk36
-rw-r--r--toolchain/binutils/Config.in51
12 files changed, 157 insertions, 100 deletions
diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk
index 5befbfbd6..11e9d974c 100644
--- a/package/libevent/libevent.mk
+++ b/package/libevent/libevent.mk
@@ -31,6 +31,7 @@ $(LIBEVENT_DIR)/.configured: $(LIBEVENT_DIR)/.unpacked
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
+ --mandir=/usr/share/man \
--disable-static \
--with-gnu-ld \
)
@@ -44,9 +45,11 @@ $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY): $(LIBEVENT_DIR)/$(LIBEVENT_BINARY)
$(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY): $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY)
$(MAKE) -C $(LIBEVENT_DIR) DESTDIR=$(TARGET_DIR) install
- rm -f $(TARGET_DIR)/usr/lib/libevent*.la $(TARGET_DIR)/usr/include/ev*
- rm -f $(TARGET_DIR)/usr/man/man3/ev*.3
- rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/man/man3
+ rm -f $(addprefix $(TARGET_DIR)/usr/,lib/libevent*.la \
+ include/ev*)
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -fr $(TARGET_DIR)/usr/share/man
+endif
libevent: uclibc $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 8f145bad5..cb21c4727 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -42,8 +42,8 @@ $(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
--datadir=/usr/share \
--localstatedir=/var \
--includedir=/usr/include \
- --mandir=/usr/man \
- --infodir=/usr/info \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
--disable-optimization \
)
touch $@
@@ -57,6 +57,9 @@ $(STAGING_DIR)/$(LIBGCRYPT_TARGET_LIBRARY): $(LIBGCRYPT_DIR)/$(LIBGCRYPT_LIBRARY
$(TARGET_DIR)/$(LIBGCRYPT_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBGCRYPT_TARGET_LIBRARY)
cp -dpf $<* $(TARGET_DIR)/$(LIBGCRYPT_DESTDIR)
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(STAGING_DIR)/usr/share/info
+endif
libgcrypt: uclibc libgpg-error $(TARGET_DIR)/$(LIBGCRYPT_TARGET_LIBRARY)
diff --git a/package/liblockfile/liblockfile.mk b/package/liblockfile/liblockfile.mk
index 959c21887..7519e62e2 100644
--- a/package/liblockfile/liblockfile.mk
+++ b/package/liblockfile/liblockfile.mk
@@ -28,29 +28,38 @@ $(LIBLOCKFILE_DIR)/.configured: $(LIBLOCKFILE_DIR)/.unpacked
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --libdir=/usr/lib \
+ --includedir=/usr/include \
+ --mandir=/usr/share/man \
--enable-shared \
)
touch $@
$(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY): $(LIBLOCKFILE_DIR)/.configured
- mkdir -p $(STAGING_DIR)/man/man1 $(STAGING_DIR)/man/man3
- $(MAKE) -C $(LIBLOCKFILE_DIR) prefix= ROOT=$(STAGING_DIR) install
- ln -sf $(LIBLOCKFILE_BINARY) $(STAGING_DIR)/lib/liblockfile.so.1
- cp -dpf $(LIBLOCKFILE_DIR)/liblockfile.a $(STAGING_DIR)/lib
+ mkdir -p $(addprefix $(STAGING_DIR)/usr/share/man/man,1 3)
+ mkdir -p $(STAGING_DIR)/usr/share/man/man3
+ rm -f $(STAGING_DIR)/usr/lib/liblockfile.so
+ $(MAKE) -C $(LIBLOCKFILE_DIR) ROOT=$(STAGING_DIR) install
+ ln -sf $(LIBLOCKFILE_BINARY) $(STAGING_DIR)/usr/lib/liblockfile.so.1
+ cp -dpf $(LIBLOCKFILE_DIR)/liblockfile.a $(STAGING_DIR)/usr/lib
$(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY): $(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY)
mkdir -p $(TARGET_DIR)/usr/lib
- cp -a $(STAGING_DIR)/lib/liblockfile.so* $(TARGET_DIR)/usr/lib
- $(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
+ cp -a $(STAGING_DIR)/usr/lib/liblockfile.so* $(TARGET_DIR)/usr/lib
+ $(STRIP) $(STRIP_STRIP_UNNEEDED) \
+ $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
liblockfile: uclibc $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
liblockfile-clean:
rm -f $(TARGET_DIR)/usr/lib/liblockfile.so*
- rm -f $(STAGING_DIR)/lib/liblockfile*
- rm -f $(STAGING_DIR)/usr/include/lockfile.h
- rm -f $(STAGING_DIR)/usr/include/mailfile.h
- rm -rf $(STAGING_DIR)/man
+ rm -f $(STAGING_DIR)/usr/lib/liblockfile*
+ rm -f $(addprefix $(STAGING_DIR)/usr/include/,lockfile.h mailfile.h)
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(STAGING_DIR)/usr/share/man
+endif
$(MAKE) -C $(LIBLOCKFILE_DIR) clean
liblockfile-dirclean:
diff --git a/package/libsndfile/libsndfile.mk b/package/libsndfile/libsndfile.mk
index 0f2787a12..c64f83066 100644
--- a/package/libsndfile/libsndfile.mk
+++ b/package/libsndfile/libsndfile.mk
@@ -36,17 +36,20 @@ $(LIBSNDFILE_DIR)/$(LIBSNDFILE_BINARY): $(LIBSNDFILE_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LIBSNDFILE_DIR)
$(TARGET_DIR)/$(LIBSNDFILE_TARGET_BINARY): $(LIBSNDFILE_DIR)/$(LIBSNDFILE_BINARY)
- $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) install
$(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) install
- rm -Rf $(TARGET_DIR)/usr/man
+ $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) install
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -Rf $(TARGET_DIR)/usr/share/man
+ rm -Rf $(STAGING_DIR)/usr/share/man
+endif
libsndfile: uclibc $(TARGET_DIR)/$(LIBSNDFILE_TARGET_BINARY)
libsndfile-source: $(DL_DIR)/$(LIBSNDFILE_SOURCE)
libsndfile-clean:
+ $(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall
- -$(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall
-$(MAKE) -C $(LIBSNDFILE_DIR) clean
libsndfile-dirclean:
@@ -60,4 +63,3 @@ libsndfile-dirclean:
ifeq ($(strip $(BR2_PACKAGE_LIBSNDFILE)),y)
TARGETS+=libsndfile
endif
-
diff --git a/package/libtool/libtool.mk b/package/libtool/libtool.mk
index 08a86be24..b5c37c7d5 100644
--- a/package/libtool/libtool.mk
+++ b/package/libtool/libtool.mk
@@ -46,8 +46,8 @@ $(LIBTOOL_DIR)/.configured: $(LIBTOOL_SRC_DIR)/.unpacked
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
$(DISABLE_NLS) \
)
touch $@
@@ -67,15 +67,21 @@ $(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY): $(LIBTOOL_DIR)/$(LIBTOOL_BINARY)
sysconfdir=$(TARGET_DIR)/etc \
localstatedir=$(TARGET_DIR)/var \
libdir=$(TARGET_DIR)/usr/lib \
- infodir=$(TARGET_DIR)/usr/info \
- mandir=$(TARGET_DIR)/usr/man \
+ infodir=$(TARGET_DIR)/usr/share/info \
+ mandir=$(TARGET_DIR)/usr/share/man \
includedir=$(TARGET_DIR)/usr/include \
-C $(LIBTOOL_DIR) install
$(STRIP) $(TARGET_DIR)//usr/lib/libltdl.so.*.*.* > /dev/null 2>&1
$(SED) "s,^CC.*,CC=\"/usr/bin/gcc\"," $(TARGET_DIR)/usr/bin/libtool
$(SED) "s,^LD.*,LD=\"/usr/bin/ld\"," $(TARGET_DIR)/usr/bin/libtool
- rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
+ rm -rf $(TARGET_DIR)/share/locale
+ rm -rf $(TARGET_DIR)/usr/share/doc
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/info
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/man
+endif
touch -c $@
libtool: uclibc $(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY)
@@ -116,8 +122,14 @@ $(LIBTOOL_HOST_DIR)/$(LIBTOOL_BINARY): $(LIBTOOL_HOST_DIR)/.configured
$(STAGING_DIR)/$(LIBTOOL_TARGET_BINARY): $(LIBTOOL_HOST_DIR)/$(LIBTOOL_BINARY)
$(MAKE) -C $(LIBTOOL_HOST_DIR) install
- rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/usr/info \
- $(STAGING_DIR)/usr/man $(STAGING_DIR)/usr/share/doc
+ rm -rf $(STAGING_DIR)/share/locale
+ rm -rf $(STAGING_DIR)/usr/share/doc
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(STAGING_DIR)/usr/share/info
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(STAGING_DIR)/usr/share/man
+endif
touch -c $@
host-libtool: $(STAGING_DIR)/$(LIBTOOL_TARGET_BINARY)
diff --git a/package/libvorbis/Config.in b/package/libvorbis/Config.in
index b84c45843..6ad0e2009 100644
--- a/package/libvorbis/Config.in
+++ b/package/libvorbis/Config.in
@@ -8,9 +8,10 @@ config BR2_PACKAGE_LIBVORBIS
(8kHz-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and
variable bitrates from 16 to 128 kbps/channel.
- This places Vorbis in the same competitive class as audio representations
- such as MPEG-4 (AAC), and similar to, but higher performance than
- MPEG-1/2 audio layer 3, MPEG-4 audio (TwinVQ), WMA and PAC.
+ This places Vorbis in the same competitive class as audio
+ representations such as MPEG-4 (AAC), and similar to, but higher
+ performance than MPEG-1/2 audio layer 3, MPEG-4 audio (TwinVQ),
+ WMA and PAC.
config BR2_PACKAGE_LIBVORBIS_HEADERS
diff --git a/package/libvorbis/libvorbis.mk b/package/libvorbis/libvorbis.mk
index c244ad74b..7cb4938fd 100644
--- a/package/libvorbis/libvorbis.mk
+++ b/package/libvorbis/libvorbis.mk
@@ -19,11 +19,13 @@ $(LIBVORBIS_DIR)/.source: $(DL_DIR)/$(LIBVORBIS_SOURCE)
touch $@
$(LIBVORBIS_DIR)/.configured: $(LIBVORBIS_DIR)/.source
- (cd $(LIBVORBIS_DIR); rm -rf config.cache ; \
+ (cd $(LIBVORBIS_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_ARGS) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
- PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
+ PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" \
+ PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
+ PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
@@ -34,7 +36,7 @@ $(LIBVORBIS_DIR)/.configured: $(LIBVORBIS_DIR)/.source
--enable-static \
--disable-oggtest \
$(DISABLE_NLS) \
- );
+ )
touch $@
$(LIBVORBIS_DIR)/.libs: $(LIBVORBIS_DIR)/.configured
@@ -51,7 +53,8 @@ $(TARGET_DIR)/usr/lib/libvorbis.a: $(TARGET_DIR)/usr/lib/libvorbis.so
libvorbis-header: $(TARGET_DIR)/usr/lib/libvorbis.a
mkdir -p $(TARGET_DIR)/usr/include/vorbis
- cp -dpf $(LIBVORBIS_DIR)/include/vorbis/*.h $(TARGET_DIR)/usr/include/vorbis
+ cp -dpf $(LIBVORBIS_DIR)/include/vorbis/*.h \
+ $(TARGET_DIR)/usr/include/vorbis
libvorbis: uclibc pkgconfig $(TARGET_DIR)/usr/lib/libvorbis.so
@@ -80,7 +83,7 @@ TREMOR_SOURCE:=$(TREMOR_NAME).tar.bz2
$(DL_DIR)/$(TREMOR_SOURCE):
(cd $(BUILD_DIR); \
svn co $(TREMOR_TRUNK); \
- mv -af Tremor $(TREMOR_NAME); \
+ mv -f Tremor $(TREMOR_NAME); \
tar -cvf $(TREMOR_NAME).tar $(TREMOR_DIR); \
bzip2 $(TREMOR_NAME).tar; \
rm -fr $(TREMOR_DIR); \
diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk
index cafb3d285..afb57cb7d 100644
--- a/package/lighttpd/lighttpd.mk
+++ b/package/lighttpd/lighttpd.mk
@@ -14,11 +14,13 @@ LIGHTTPD_TARGET_BINARY:=usr/sbin/lighttpd
$(DL_DIR)/$(LIGHTTPD_SOURCE):
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_SOURCE)
+
ifneq ($(LIGHTTPD_PATCH),)
LIGHTTPD_PATCH_FILE:=$(DL_DIR)/$(LIGHTTPD_PATCH)
$(LIGHTTPD_PATCH_FILE):
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_PATCH)
endif
+
lighttpd-source: $(DL_DIR)/$(LIGHTTPD_SOURCE) $(LIGHTTPD_PATCH_FILE)
$(LIGHTTPD_DIR)/.unpacked: $(DL_DIR)/$(LIGHTTPD_SOURCE)
@@ -63,17 +65,21 @@ $(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
$(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY): $(LIGHTTPD_DIR)/.configured
$(MAKE) -C $(LIGHTTPD_DIR)
-
+
$(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY): $(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY)
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(LIGHTTPD_DIR) install
- @rm -rf $(TARGET_DIR)/usr/share/man $(TARGET_DIR)/usr/man
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/man
+endif
@rm -rf $(TARGET_DIR)/usr/lib/lighttpd/*.la
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/lighttpd/*.so
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
@if [ ! -f $(TARGET_DIR)/etc/lighttpd/lighttpd.conf ]; then \
- $(INSTALL) -m 0644 -D $(LIGHTTPD_DIR)/doc/lighttpd.conf $(TARGET_DIR)/etc/lighttpd/lighttpd.conf; \
+ $(INSTALL) -m 0644 -D $(LIGHTTPD_DIR)/doc/lighttpd.conf \
+ $(TARGET_DIR)/etc/lighttpd/lighttpd.conf; \
fi
- $(INSTALL) -m 0755 -D package/lighttpd/rc.lighttpd $(TARGET_DIR)/etc/init.d/S99lighttpd
+ $(INSTALL) -m 0755 -D package/lighttpd/rc.lighttpd \
+ $(TARGET_DIR)/etc/init.d/S99lighttpd
ifeq ($(strip $(BR2_PACKAGE_LIGHTTPD_OPENSSL)),y)
lighttpd: uclibc openssl $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
diff --git a/package/openntpd/openntpd.mk b/package/openntpd/openntpd.mk
index dc680c1e4..9f99c9b73 100644
--- a/package/openntpd/openntpd.mk
+++ b/package/openntpd/openntpd.mk
@@ -64,7 +64,7 @@ ntpd-source: $(DL_DIR)/$(OPENNTPD_SOURCE)
ntpd-clean:
rm -f $(addprefix $(TARGET_DIR)/,etc/ntpd.conf \
- usr/share/man/man?/ntpd.conf* \
+ usr/share/man/man?/ntpd* \
$(OPENNTPD_TARGET_BINARY))
-$(MAKE) -C $(OPENNTPD_DIR) clean
diff --git a/package/sed/sed.mk b/package/sed/sed.mk
index ee91eed3b..2d04c451e 100644
--- a/package/sed/sed.mk
+++ b/package/sed/sed.mk
@@ -54,21 +54,29 @@ build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
@if [ -L $(HOST_SED_DIR)/$(SED_TARGET_BINARY) ]; then \
rm -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY); \
fi
- @if [ ! -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY) -o $(HOST_SED_DIR)/$(SED_TARGET_BINARY) \
- -ot $(SED_DIR1)/$(SED_BINARY) ]; then \
- set -x; \
- mkdir -p $(HOST_SED_DIR)/bin; \
- $(MAKE) DESTDIR=$(HOST_SED_DIR) -C $(SED_DIR1) install; \
- mv $(HOST_SED_DIR)/usr/bin/sed $(HOST_SED_DIR)/bin/; \
- rm -rf $(HOST_SED_DIR)/share/locale $(HOST_SED_DIR)/usr/info \
- $(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; \
+ @if [ ! -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY) \
+ -o $(HOST_SED_DIR)/$(SED_TARGET_BINARY) \
+ -ot $(SED_DIR1)/$(SED_BINARY) ]; then \
+ set -x; \
+ mkdir -p $(HOST_SED_DIR)/bin; \
+ $(MAKE) DESTDIR=$(HOST_SED_DIR) -C $(SED_DIR1) install; \
+ mv $(HOST_SED_DIR)/usr/bin/sed $(HOST_SED_DIR)/bin/; \
+ rm -rf $(HOST_SED_DIR)/share/locale; \
+ rm -rf $(HOST_SED_DIR)/usr/share/doc; \
fi
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(HOST_SED_DIR)/usr/man/info
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(HOST_SED_DIR)/usr/share/man
+endif
$(HOST_SED_DIR)/$(SED_TARGET_BINARY):
if [ ! -e "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)" ]; then \
mkdir -p "$(HOST_SED_DIR)/bin"; \
rm -f "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
- ln -sf "$(HOST_SED_IF_ANY)" "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
+ ln -sf "$(HOST_SED_IF_ANY)" \
+ "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
fi
.PHONY: sed host-sed use-sed-host-binary
@@ -117,8 +125,8 @@ $(SED_DIR2)/.configured: $(SED_DIR2)/.unpacked
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
--include=$(STAGING_DIR)/usr/include \
$(DISABLE_NLS) \
)
@@ -133,14 +141,21 @@ sed-target_binary: $(SED_DIR2)/$(SED_BINARY)
rm -f $(TARGET_DIR)/$(SED_TARGET_BINARY); \
fi
- @if [ ! -f $(SED_DIR2)/$(SED_BINARY) -o $(TARGET_DIR)/$(SED_TARGET_BINARY) \
- -ot $(SED_DIR2)/$(SED_BINARY) ]; then \
- set -x; \
- $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(SED_DIR2) install; \
- mv $(TARGET_DIR)/usr/bin/sed $(TARGET_DIR)/bin/; \
- rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc; \
+ @if [ ! -f $(SED_DIR2)/$(SED_BINARY) \
+ -o $(TARGET_DIR)/$(SED_TARGET_BINARY) \
+ -ot $(SED_DIR2)/$(SED_BINARY) ]; then \
+ set -x; \
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(SED_DIR2) install; \
+ mv $(TARGET_DIR)/usr/bin/sed $(TARGET_DIR)/bin/; \
+ rm -rf $(TARGET_DIR)/share/locale; \
+ rm -rf $(TARGET_DIR)/usr/share/doc; \
fi
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/info
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/man
+endif
sed: uclibc sed-target_binary
diff --git a/project/project.mk b/project/project.mk
index 4857a92dc..b85fe3915 100644
--- a/project/project.mk
+++ b/project/project.mk
@@ -1,7 +1,7 @@
PROJECT_FILE:=$(LOCAL)/$(PROJECT)/$(PROJECT).config
-.PHONY: target-host-info saveconfig getconfig
+.PHONY: target-host-info saveconfig getconfig
target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname
@@ -18,27 +18,31 @@ $(TARGET_DIR)/etc/hostname: .config
saveconfig: $(CONFIG)/conf
mkdir -p $(LOCAL)/$(PROJECT)
-cp .config $(PROJECT_FILE)
- if [ -f $(LINUX26_DIR)/.config ] ; then \
- cp $(LINUX26_DIR)/.config $(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config ; \
- $(SED) '/BR2_PACKAGE_LINUX_KCONFIG/d' $(PROJECT_FILE) ; \
- echo "BR2_PACKAGE_LINUX_KCONFIG:=$(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config" >> $(PROJECT_FILE) ; \
+ if [ -f $(LINUX26_DIR)/.config ]; then \
+ cp $(LINUX26_DIR)/.config \
+ $(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config; \
+ $(SED) '/BR2_PACKAGE_LINUX_KCONFIG/d' $(PROJECT_FILE); \
+ echo "BR2_PACKAGE_LINUX_KCONFIG:=$(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config" >> $(PROJECT_FILE); \
fi
- if [ -f $(BUSYBOX_DIR)/.config ] ; then \
- cp $(BUSYBOX_DIR)/.config $(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config ; \
- $(SED) '/BR2_PACKAGE_BUSYBOX_CONFIG/d' $(PROJECT_FILE) ; \
- echo "BR2_PACKAGE_BUSYBOX_CONFIG:=$(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config" >> $(PROJECT_FILE) ; \
+ if [ -f $(BUSYBOX_DIR)/.config ]; then \
+ cp $(BUSYBOX_DIR)/.config \
+ $(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config; \
+ $(SED) '/BR2_PACKAGE_BUSYBOX_CONFIG/d' $(PROJECT_FILE); \
+ echo "BR2_PACKAGE_BUSYBOX_CONFIG:=$(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config" >> $(PROJECT_FILE); \
fi
- if [ -f $(UCLIBC_DIR)/.config ] ; then \
- cp $(UCLIBC_DIR)/.config $(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config ; \
- $(SED) '/BR2_UCLIBC_CONFIG/d' $(PROJECT_FILE) ; \
- echo "BR2_UCLIBC_CONFIG:=$(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config" >> $(PROJECT_FILE) ; \
+ if [ -f $(UCLIBC_DIR)/.config ]; then \
+ cp $(UCLIBC_DIR)/.config \
+ $(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config; \
+ $(SED) '/BR2_UCLIBC_CONFIG/d' $(PROJECT_FILE); \
+ echo "BR2_UCLIBC_CONFIG:=$(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config" >> $(PROJECT_FILE); \
fi
- if [ -f $(UBOOT_DIR)/include/configs/$(PROJECT).h ] ; then \
- cp $(UBOOT_DIR)/include/configs/$(PROJECT).h $(LOCAL)/$(PROJECT)/u-boot/$(PROJECT).h ; \
+ if [ -f $(UBOOT_DIR)/include/configs/$(PROJECT).h ]; then \
+ cp $(UBOOT_DIR)/include/configs/$(PROJECT).h \
+ $(LOCAL)/$(PROJECT)/u-boot/$(PROJECT).h; \
fi
getconfig: $(CONFIG)/conf
- -cp $(LOCAL)/$(PROJECT)/$(PROJECT).config .config
+ -cp $(LOCAL)/$(PROJECT)/$(PROJECT).config .config
vendor-dbg:
@echo VENDOR_SITE=$(BR2_VENDOR_SITE)
diff --git a/toolchain/binutils/Config.in b/toolchain/binutils/Config.in
index 80f3e2d3b..dc86b60ae 100644
--- a/toolchain/binutils/Config.in
+++ b/toolchain/binutils/Config.in
@@ -13,7 +13,7 @@ choice
bool "binutils 2.14.90.0.8"
config BR2_BINUTILS_VERSION_2_15
- depends !BR2_avr32 && BR2_DEPRECATED
+ depends !BR2_avr32 && BR2_DEPRECATED
bool "binutils 2.15"
config BR2_BINUTILS_VERSION_2_15_94_0_2_2
@@ -107,34 +107,33 @@ endchoice
config BR2_BINUTILS_VERSION
string
- default "2.14.90.0.8" if BR2_BINUTILS_VERSION_2_14_90_0_8
- default "2.15" if BR2_BINUTILS_VERSION_2_15
- default "2.15.94.0.2.2" if BR2_BINUTILS_VERSION_2_15_94_0_2_2
- default "2.16.1" if BR2_BINUTILS_VERSION_2_16_1
- default "2.16.90.0.3" if BR2_BINUTILS_VERSION_2_16_90_0_3
- default "2.16.91.0.5" if BR2_BINUTILS_VERSION_2_16_91_0_5
- default "2.16.91.0.6" if BR2_BINUTILS_VERSION_2_16_91_0_6
- default "2.16.91.0.7" if BR2_BINUTILS_VERSION_2_16_91_0_7
- default "2.17" if BR2_BINUTILS_VERSION_2_17
- default "2.17.50.0.2" if BR2_BINUTILS_VERSION_2_17_50_0_2
- default "2.17.50.0.3" if BR2_BINUTILS_VERSION_2_17_50_0_3
- default "2.17.50.0.4" if BR2_BINUTILS_VERSION_2_17_50_0_4
- default "2.17.50.0.5" if BR2_BINUTILS_VERSION_2_17_50_0_5
- default "2.17.50.0.6" if BR2_BINUTILS_VERSION_2_17_50_0_6
- default "2.17.50.0.7" if BR2_BINUTILS_VERSION_2_17_50_0_7
- default "2.17.50.0.8" if BR2_BINUTILS_VERSION_2_17_50_0_8
- default "2.17.50.0.9" if BR2_BINUTILS_VERSION_2_17_50_0_9
- default "2.17.50.0.10" if BR2_BINUTILS_VERSION_2_17_50_0_10
- default "2.17.50.0.12" if BR2_BINUTILS_VERSION_2_17_50_0_12
- default "2.17.50.0.14" if BR2_BINUTILS_VERSION_2_17_50_0_14
- default "2.17.50.0.16" if BR2_BINUTILS_VERSION_2_17_50_0_16
- default "2.17.50.0.17" if BR2_BINUTILS_VERSION_2_17_50_0_17
- default "2.18" if BR2_BINUTILS_VERSION_2_18
- default "2.18.50.0.1" if BR2_BINUTILS_VERSION_2_18_50_0_1
+ default "2.14.90.0.8" if BR2_BINUTILS_VERSION_2_14_90_0_8
+ default "2.15" if BR2_BINUTILS_VERSION_2_15
+ default "2.15.94.0.2.2" if BR2_BINUTILS_VERSION_2_15_94_0_2_2
+ default "2.16.1" if BR2_BINUTILS_VERSION_2_16_1
+ default "2.16.90.0.3" if BR2_BINUTILS_VERSION_2_16_90_0_3
+ default "2.16.91.0.5" if BR2_BINUTILS_VERSION_2_16_91_0_5
+ default "2.16.91.0.6" if BR2_BINUTILS_VERSION_2_16_91_0_6
+ default "2.16.91.0.7" if BR2_BINUTILS_VERSION_2_16_91_0_7
+ default "2.17" if BR2_BINUTILS_VERSION_2_17
+ default "2.17.50.0.2" if BR2_BINUTILS_VERSION_2_17_50_0_2
+ default "2.17.50.0.3" if BR2_BINUTILS_VERSION_2_17_50_0_3
+ default "2.17.50.0.4" if BR2_BINUTILS_VERSION_2_17_50_0_4
+ default "2.17.50.0.5" if BR2_BINUTILS_VERSION_2_17_50_0_5
+ default "2.17.50.0.6" if BR2_BINUTILS_VERSION_2_17_50_0_6
+ default "2.17.50.0.7" if BR2_BINUTILS_VERSION_2_17_50_0_7
+ default "2.17.50.0.8" if BR2_BINUTILS_VERSION_2_17_50_0_8
+ default "2.17.50.0.9" if BR2_BINUTILS_VERSION_2_17_50_0_9
+ default "2.17.50.0.10" if BR2_BINUTILS_VERSION_2_17_50_0_10
+ default "2.17.50.0.12" if BR2_BINUTILS_VERSION_2_17_50_0_12
+ default "2.17.50.0.14" if BR2_BINUTILS_VERSION_2_17_50_0_14
+ default "2.17.50.0.16" if BR2_BINUTILS_VERSION_2_17_50_0_16
+ default "2.17.50.0.17" if BR2_BINUTILS_VERSION_2_17_50_0_17
+ default "2.18" if BR2_BINUTILS_VERSION_2_18
+ default "2.18.50.0.1" if BR2_BINUTILS_VERSION_2_18_50_0_1
config BR2_EXTRA_BINUTILS_CONFIG_OPTIONS
string "Additional binutils options"
default ""
help
Any additional binutils options you may want to include.
-