summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Expand)AuthorAgeFilesLines
* include/download.mk: Add download mirrors for tools from GNU Savannah (bug #1...John Crispin2014-10-081-0/+5
* build: add support for declaring package CONFLICTS which only affect selectin...Felix Fietkau2014-10-052-0/+14
* build: allow packages with build variants to explicitly select a default variantFelix Fietkau2014-09-232-1/+2
* script/remote-gdb: enable and keep command historyJo-Philipp Wich2014-09-181-0/+5
* build: introduce per feed repository supportJo-Philipp Wich2014-08-053-1/+38
* scripts/om-fwupgradecfg-gen.sh: add support for the OM5PJohn Crispin2014-07-201-2/+2
* scripts/abs2rel.pl: remove, it is unusedFelix Fietkau2014-07-041-16/+0
* scripts: unset GREP_OPTIONS in env and feeds (fixes #16924)Felix Fietkau2014-06-302-0/+2
* scripts/ubinize-image.sh: fix ubinize-image.sh when used with --kernelJohn Crispin2014-06-291-0/+1
* make UbinizeImage work nicely without a kernel volumeImre Kaloz2014-06-271-10/+4
* scripts/ubinize-image.sh: fix parameter handlingJohn Crispin2014-06-261-24/+27
* scripts/metadata.pl: avoid adding depends and select for the same symbolFelix Fietkau2014-06-121-1/+1
* kernel: add a NAND_SUPPORT symbolJohn Crispin2014-06-111-0/+1
* scripts: add ubinize-image.sh to generate ubi imagesJohn Crispin2014-06-111-0/+113
* build: add a feature flag for low-memory systemsFelix Fietkau2014-06-021-0/+1
* scripts/bundle-libraries: fall back to only copying binaries if ldd is unavai...Felix Fietkau2014-06-021-21/+20
* metadata.pl: suppress profile config.in code for targets that have subtargets...Felix Fietkau2014-06-011-1/+4
* scripts/metadata.pl: fix ignoring missing host dependenciesFelix Fietkau2014-03-131-1/+2
* scripts/metadata.pl: remove sdk specific config symbol overrideFelix Fietkau2014-03-131-8/+1
* scripts/config: make wildcard include with no results non-fatalFelix Fietkau2014-03-102-0/+14
* scripts/kconfig.pl: Indicate which file we couldn't openJohn Crispin2014-01-191-1/+1
* scripts/download.pl: prefer the GNU mirror redirect over the primary site (#1...Felix Fietkau2013-12-131-1/+1
* add a feature flag for device tree supportImre Kaloz2013-11-221-0/+1
* scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulatin...Felix Fietkau2013-11-191-1/+1
* build: fix build on Mac OS X 10.9Felix Fietkau2013-10-281-0/+12
* ipkg-make-index: use more backwards-compatible openssl call for SHA256Steven Barth2013-10-171-1/+1
* build: drop FIT option until we actually need itLuka Perkov2013-10-171-1/+0
* build: add menuconfig option for building FIT imagesLuka Perkov2013-10-161-0/+1
* build: move mkits.sh script to more common placeLuka Perkov2013-10-161-0/+115
* opkg: add support for SHA256 verificationSteven Barth2013-10-041-0/+2
* scripts/gen-dependencies.sh: use the cross readelf (#12940)Felix Fietkau2013-09-291-1/+1
* build: include the cpu type as part of the toolchain/target directory nameFelix Fietkau2013-09-261-0/+11
* feeds: enable cloning of specific git commitLuka Perkov2013-09-251-2/+8
* scripts/feeds: ensure that --ff is enabledFlorian Fainelli2013-09-021-1/+1
* scripts/checkpatch.pl: Fix whitespace errorsVasilis Tsiligiannis2013-08-311-20/+20
* scripts/{cleanfile,cleanpatch}: Add scripts for cleaning up file and patch wh...Vasilis Tsiligiannis2013-08-312-0/+434
* scripts/checkpatch.pl: Remove checks for __setup's documentationVasilis Tsiligiannis2013-08-311-26/+0
* scripts/checkpatch.pl: Remove check for deprecated featuresVasilis Tsiligiannis2013-08-311-37/+0
* scripts/checkpatch.pl: Introduce 'checkpatch.pl' scriptVasilis Tsiligiannis2013-08-311-0/+3553
* build: process transitive dependencies after local dependenciesFelix Fietkau2013-08-041-1/+7
* build: suppress conditional dependencies if there are unconditional dependenc...Felix Fietkau2013-08-041-0/+1
* kernel: add a new global config symbol for enabling rfkill support (can be en...Felix Fietkau2013-07-211-0/+1
* scripts/metadata.pl: emit dependencies for package/kernel/linuxFelix Fietkau2013-07-191-1/+1
* scripts/gen-dependencies.sh: clean up temp filesFelix Fietkau2013-07-191-0/+1
* scripts: change metadata.pm and metadata.pl to not emit "default m if ALL" Kc...Jo-Philipp Wich2013-07-182-3/+7
* gen-dependencies.sh: sort kmod dependenciesFelix Fietkau2013-07-181-1/+1
* build: implement kernel module dependency trackingFelix Fietkau2013-07-181-0/+10
* metadata.pl: use alphabetical order for menuconfig categories, also fixes ran...Jo-Philipp Wich2013-07-161-1/+1
* remove broken mirrors for linux kernelMirko Vogt2013-07-141-4/+0
* scripts/download.pl: use HTTP instead of FTP for the default GNU siteFelix Fietkau2013-07-091-1/+1
_STAGE1:= \ $(GCC_CONFIGURE) \ --with-newlib \ --with-sysroot=$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev \ --enable-languages=c \ --disable-shared \ --disable-threads \ GCC_CONFIGURE_STAGE2:= \ $(GCC_CONFIGURE) \ --enable-languages=$(TARGET_LANGUAGES) \ --enable-shared \ --enable-threads \ --with-slibdir=$(TOOLCHAIN_DIR)/lib \ GCC_MAKE:= \ export SHELL="$(BASH)"; \ $(MAKE) \ define Host/SetToolchainInfo $(SED) 's,TARGET_CROSS=.*,TARGET_CROSS=$(REAL_GNU_TARGET_NAME)-,' $(TOOLCHAIN_DIR)/info.mk $(SED) 's,GCC_VERSION=.*,GCC_VERSION=$(PKG_VERSION),' $(TOOLCHAIN_DIR)/info.mk endef define Stage0/Configure mkdir -p $(HOST_BUILD_DIR0) (cd $(HOST_BUILD_DIR0); rm -f config.cache; \ $(GCC_CONFIGURE_STAGE0) \ ); endef define Stage0/Compile $(GCC_MAKE) -C $(HOST_BUILD_DIR0) all-gcc endef define Stage0/Install $(GCC_MAKE) -C $(HOST_BUILD_DIR0) install-gcc endef define Stage1/Configure mkdir -p $(HOST_BUILD_DIR1) (cd $(HOST_BUILD_DIR1); rm -f config.cache; \ $(GCC_CONFIGURE_STAGE1) \ ); endef define Stage1/Compile $(CP) $(BUILD_DIR_TOOLCHAIN)/linux-dev/* $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/ $(GCC_MAKE) -C $(HOST_BUILD_DIR1) \ all-build-libiberty \ all-gcc \ $(if $(GCC_BUILD_TARGET_LIBGCC),all-target-libgcc) endef define Stage1/Install $(GCC_MAKE) -C $(HOST_BUILD_DIR1) \ install-gcc \ $(if $(GCC_BUILD_TARGET_LIBGCC),install-target-libgcc) # XXX: glibc insists on linking against libgcc_eh ( cd $(TOOLCHAIN_DIR)/usr/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \ [ -e libgcc_eh.a ] || ln -sf libgcc.a libgcc_eh.a ; \ ) endef define Stage2/Configure mkdir -p $(HOST_BUILD_DIR2) $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME) # Important! Required for limits.h to be fixed. rm -rf $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME)/sys-include ln -sf ../include $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME)/sys-include rm -rf $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib ln -sf ../lib $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib (cd $(HOST_BUILD_DIR2); rm -f config.cache; \ $(GCC_CONFIGURE_STAGE2) \ ); endef define Stage2/Compile $(GCC_MAKE) -C $(HOST_BUILD_DIR2) all endef define SetupExtraArch for app in $(TOOLCHAIN_DIR)/usr/bin/$(OPTIMIZE_FOR_CPU)*-{gcc,gcc-*,g++}; do \ [ -e $$$$app ] || continue; \ old_base=$$$$(basename $$$$app); \ new_base=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-$$$${old_base##$(OPTIMIZE_FOR_CPU)-}; \ sed -e "s/@CC_BASE@/$$$$old_base/" \ -e 's/@EXTRA_ARCH_OPTS@/$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_OPTS))/' \ ./files/alternate-arch-cc.in > \ $(TOOLCHAIN_DIR)/usr/bin/$$$$new_base; \ chmod a+x $(TOOLCHAIN_DIR)/usr/bin/$$$$new_base; \ done endef define Stage2/Install $(GCC_MAKE) -C $(HOST_BUILD_DIR2) install # Set up the symlinks to enable lying about target name. set -e; \ (cd $(TOOLCHAIN_DIR)/usr; \ ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \ cd bin; \ for app in $(REAL_GNU_TARGET_NAME)-* ; do \ ln -sf $$$${app} \ $(GNU_TARGET_NAME)$$$${app##$(REAL_GNU_TARGET_NAME)}; \ done; \ ); $(if $(CONFIG_EXTRA_TARGET_ARCH),$(call SetupExtraArch)) endef define Host/Prepare $(call Host/SetToolchainInfo) $(call Host/Prepare/Default) ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/ $(SED) 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (OpenWrt-2.0)\2,' $(HOST_BUILD_DIR)/gcc/version.c $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:https://dev.openwrt.org/>\2,' $(HOST_BUILD_DIR)/gcc/version.c (cd $(HOST_BUILD_DIR)/libstdc++-v3; autoconf;); $(SED) 's,gcc_no_link=yes,gcc_no_link=no,' $(HOST_BUILD_DIR)/libstdc++-v3/configure $(call Stage0/Configure) $(call Stage0/Compile) $(call Stage0/Install) endef define Host/Configure endef define Host/Compile $(call Stage1/Configure) $(call Stage1/Compile) $(call Stage1/Install) endef define Host/Install $(call Stage2/Configure) $(call Stage2/Compile) $(call Stage2/Install) endef define Host/Clean rm -rf \ $(HOST_BUILD_DIR) \ $(HOST_BUILD_DIR0) \ $(HOST_BUILD_DIR1) \ $(HOST_BUILD_DIR2) \ $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) \ $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME) \ $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gc* \ $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-c* endef $(eval $(call HostBuild))