aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Expand)AuthorAgeFilesLines
* buildroot: isolate the .install stamp files for build variants (#12279)Jo-Philipp Wich2012-11-072-10/+11
* kernel: update linux 3.6 to 3.6.6Gabor Juhos2012-11-051-2/+2
* kernel: update linux 3.6 to 3.6.5Gabor Juhos2012-10-311-2/+2
* kernel-defaults: factor common code handling initramfs optionsFlorian Fainelli2012-10-311-30/+25
* build: increase file descriptor count limit for the build, some systems (e.g....Felix Fietkau2012-10-311-1/+3
* properly reindent Kernel/Prepare/DefaultFlorian Fainelli2012-10-301-6/+6
* kernel: update linux 3.6 to 3.6.4Gabor Juhos2012-10-281-2/+2
* make CXX_DEPENDS also depend on INSTALL_LIBSTDCPPFlorian Fainelli2012-10-241-1/+1
* linux 3.6 support (work in progress)Imre Kaloz2012-10-231-0/+3
* licensing: Add licensing metadata to many packages Two new variables are intr...Hamish Guthrie2012-10-191-0/+4
* toolchain: enable parallel build for uClibc, remove the obsolete TOOLCHAIN_PA...Felix Fietkau2012-10-171-2/+0
* build: fix host build stampfile usage, fixes spurious errors with missing opk...Felix Fietkau2012-10-151-24/+13
* autotools.mk: add a gettext-version PKG_FIXUP (#11236)Jo-Philipp Wich2012-10-101-0/+13
* it's time to break the barriersImre Kaloz2012-10-081-2/+2
* build: allow the package maintainer info to be specified globally for a sourc...Felix Fietkau2012-10-081-1/+3
* build: create pkginfo dir earlier to avoid build breakageFelix Fietkau2012-10-061-0/+1
* build: rework the package/install step - collect package install lists during...Felix Fietkau2012-10-062-26/+18
* version.mk: ensure that %S is always populated with a subtarget identifier, f...Jo-Philipp Wich2012-09-241-1/+1
* build: add the + token to any commands that can pass through the jobserver, f...Felix Fietkau2012-09-232-3/+3
* build: pass MAKE_JOBSERVER via environment to avoid leaking it to error messagesFelix Fietkau2012-09-231-1/+2
* include/netfilter.mk: remove a few obsolete linesFelix Fietkau2012-09-231-8/+0
* host-build: add HOST_MAKE_FLAGS similar to package MAKE_FLAGSFelix Fietkau2012-09-221-1/+5
* make packages depend on +librt and +libpthread by default if eglibc is in useJo-Philipp Wich2012-09-191-1/+3
* build: ensure that package/host-build build system code does not run in paral...Felix Fietkau2012-09-172-0/+4
* build: add jobserver support for host buildsFelix Fietkau2012-09-151-1/+7
* build: move the -j flag to package.mk instead of grabbing it from makeflags, ...Felix Fietkau2012-09-152-2/+2
* kernel: suppress redundant calls to headers installationFelix Fietkau2012-09-151-1/+1
* kernel: remove the explicit kernel make call for "oldconfig prepare scripts",...Felix Fietkau2012-09-151-1/+0
* build: add a config option for passing the top-level make jobserver to packag...Felix Fietkau2012-09-152-2/+8
* add sparc specific site filesFlorian Fainelli2012-09-144-0/+43
* do not pass optimization flags in HOST_CPPFLAGS (#12153)Jo-Philipp Wich2012-09-091-1/+1
* unify tapi depsJohn Crispin2012-08-131-0/+12
* introduce a menuconfig option to turn off static linking of host utilitiesJo-Philipp Wich2012-08-131-1/+3
* prereq-build.mk: do not perform static linking tests on DarwinJo-Philipp Wich2012-08-121-15/+20
* host-build.mk: define a variable HOST_STATIC_LINKING which is set to "-static...Jo-Philipp Wich2012-08-121-0/+4
* add remaining missing build prereq checksJo-Philipp Wich2012-08-111-0/+19
* add a build preeq check for glibc-staticJo-Philipp Wich2012-08-101-0/+9
* fix up scons vs ccacheJohn Crispin2012-07-281-2/+2
* use autoreconf hook instead of manual callJohn Crispin2012-07-252-1/+3
* package-version-override always calls autoreconfJohn Crispin2012-07-241-1/+1
* kernel: fix portability issues on the x86 specific relocs host tool, fixes bu...Felix Fietkau2012-07-201-0/+1
* scripts/config: build with gcc instead of clang on mac os xFelix Fietkau2012-07-161-2/+3
* package-ipkg.mk: flag packages as "ok" after installJo-Philipp Wich2012-07-151-1/+1
* nls.mk: fix build dependency on gettext (#11829)Jo-Philipp Wich2012-07-111-2/+2
* toplevel.mk: unexport ARCH, it ends up in CONFIG_ARCH if defined and messes t...Jo-Philipp Wich2012-07-111-1/+1
* include/image.mk: /tmp should have mode 1777Jo-Philipp Wich2012-07-011-1/+1
* toolchain: fix up lib64 symlink to lib before copying the initial prefix dir ...Felix Fietkau2012-06-301-0/+9
* kmod-ipt-nathelper-extra: fix missing nf_conntrack_broadcast.koFelix Fietkau2012-06-181-0/+1
* build: allow KERNELNAME to contain multiple kernel make targetsFlorian Fainelli2012-06-181-1/+1
* fix ccache related build breakageJohn Crispin2012-06-181-2/+2
span>)) endef ifdef CHECK check_escape=$(subst ','\'',$(1)) #') check_warn_nofix = $(info $(shell printf "$(_R)WARNING: %s$(_N)" '$(call check_escape,$(call C_$(1),$(2),$(3),$(4)))')) ifndef FIXUP check_warn = $(check_warn_nofix) else check_warn = $(if $(filter-out undefined,$(origin F_$(1))),$(filter ,$(shell $(call F_$(1),$(2),$(3),$(4)) >&2)),$(check_warn_nofix)) endif gen_sha256sum = $(shell mkhash sha256 $(DL_DIR)/$(1)) ifdef FIXUP F_hash_deprecated = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile fix-hash $(3) $(call gen_sha256sum,$(1)) $(2) F_hash_mismatch = $(F_hash_deprecated) F_hash_missing = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile add-hash $(3) $(call gen_sha256sum,$(1)) endif C_download_missing = $(1) is missing, please run make download before re-running this check C_hash_mismatch = $(3) does not match $(1) hash $(call gen_sha256sum,$(1)) C_hash_deprecated = $(3) uses deprecated hash, set to $(call gen_sha256sum,$(1)) C_hash_missing = $(3) is missing, set to $(call gen_sha256sum,$(1)) check_hash = \ $(if $(wildcard $(DL_DIR)/$(1)), \ $(if $(filter-out x,$(2)), \ $(if $(filter 64,$(shell printf '%s' '$(2)' | wc -c)), \ $(if $(filter $(2),$(call gen_sha256sum,$(1))),, \ $(call check_warn,hash_mismatch,$(1),$(2),$(3)) \ ), \ $(call check_warn,hash_deprecated,$(1),$(2),$(3)), \ ), \ $(call check_warn,hash_missing,$(1),$(2),$(3)) \ ), \ $(call check_warn,download_missing,$(1),$(2),$(3)) \ ) ifdef FIXUP F_md5_deprecated = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile rename-var $(2) $(3) endif C_md5_deprecated = Use of $(2) is deprecated, switch to $(3) check_md5 = \ $(if $(filter-out x,$(1)), \ $(call check_warn,md5_deprecated,$(1),$(2),$(3)) \ ) hash_var = $(if $(filter-out x,$(1)),MD5SUM,HASH) endif define DownloadMethod/unknown echo "ERROR: No download method available"; false endef define DownloadMethod/default $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(HASH)" "$(URL_FILE)" $(foreach url,$(URL),"$(url)") \ $(if $(filter check,$(1)), \ $(call check_hash,$(FILE),$(HASH),$(2)$(call hash_var,$(MD5SUM))) \ $(call check_md5,$(MD5SUM),$(2)MD5SUM,$(2)HASH) \ ) endef define wrap_mirror $(if $(if $(MIRROR),$(filter-out x,$(MIRROR_HASH))),$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_HASH)" "" || ( $(3) ),$(3)) \ $(if $(filter check,$(1)), \ $(call check_hash,$(FILE),$(MIRROR_HASH),$(2)MIRROR_$(call hash_var,$(MIRROR_MD5SUM))) \ $(call check_md5,$(MIRROR_MD5SUM),$(2)MIRROR_MD5SUM,$(2)MIRROR_HASH) \ ) endef define DownloadMethod/cvs $(call wrap_mirror,$(1),$(2), \ echo "Checking out files from the cvs repository..."; \ mkdir -p $(TMP_DIR)/dl && \ cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ cvs -d $(URL) export $(VERSION) $(SUBDIR) && \ echo "Packing checkout..." && \ $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ rm -rf $(SUBDIR); \ ) endef define DownloadMethod/svn $(call wrap_mirror,$(1),$(2), \ echo "Checking out files from the svn repository..."; \ mkdir -p $(TMP_DIR)/dl && \ cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ ( svn help export | grep -q trust-server-cert && \ svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) || \ svn export --non-interactive -r$(VERSION) $(URL) $(SUBDIR) ) && \ echo "Packing checkout..." && \ export TAR_TIMESTAMP="" && \ $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ rm -rf $(SUBDIR); \ ) endef define DownloadMethod/git $(call wrap_mirror,$(1),$(2), \ echo "Checking out files from the git repository..."; \ mkdir -p $(TMP_DIR)/dl && \ cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ git clone $(OPTS) $(URL) $(SUBDIR) && \ (cd $(SUBDIR) && git checkout $(VERSION) && \ git submodule update --init --recursive) && \ echo "Packing checkout..." && \ export TAR_TIMESTAMP=`cd $(SUBDIR) && git log -1 --format='@%ct'` && \ rm -rf $(SUBDIR)/.git && \ $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ rm -rf $(SUBDIR); \ ) endef define DownloadMethod/bzr $(call wrap_mirror,$(1),$(2), \ echo "Checking out files from the bzr repository..."; \ mkdir -p $(TMP_DIR)/dl && \ cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ bzr export --per-file-timestamps -r$(VERSION) $(SUBDIR) $(URL) && \ echo "Packing checkout..." && \ export TAR_TIMESTAMP="" && \ $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ rm -rf $(SUBDIR); \ ) endef define DownloadMethod/hg $(call wrap_mirror,$(1),$(2), \ echo "Checking out files from the hg repository..."; \ mkdir -p $(TMP_DIR)/dl && \ cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ hg clone -r $(VERSION) $(URL) $(SUBDIR) && \ export TAR_TIMESTAMP=`cd $(SUBDIR) && hg log --template '@{date}' -l 1` && \ find $(SUBDIR) -name .hg | xargs rm -rf && \ echo "Packing checkout..." && \ $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ rm -rf $(SUBDIR); \ ) endef define DownloadMethod/darcs $(call wrap_mirror, $(1), $(2), \ echo "Checking out files from the darcs repository..."; \ mkdir -p $(TMP_DIR)/dl && \ cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ darcs get -t $(VERSION) $(URL) $(SUBDIR) && \ export TAR_TIMESTAMP=`cd $(SUBDIR) && LC_ALL=C darcs log --last 1 | sed -ne 's!^Date: \+!!p'` && \ find $(SUBDIR) -name _darcs | xargs rm -rf && \ echo "Packing checkout..." && \ $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ rm -rf $(SUBDIR); \ ) endef Validate/cvs=VERSION SUBDIR Validate/svn=VERSION SUBDIR Validate/git=VERSION SUBDIR Validate/bzr=VERSION SUBDIR Validate/hg=VERSION SUBDIR Validate/darcs=VERSION SUBDIR define Download/Defaults URL:= FILE:= URL_FILE:= PROTO:= HASH=$$(MD5SUM) MD5SUM:=x SUBDIR:= MIRROR:=1 MIRROR_HASH=$$(MIRROR_MD5SUM) MIRROR_MD5SUM:=x VERSION:= OPTS:= endef define Download/default FILE:=$(PKG_SOURCE) URL:=$(PKG_SOURCE_URL) SUBDIR:=$(PKG_SOURCE_SUBDIR) PROTO:=$(PKG_SOURCE_PROTO) $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) $(if $(PKG_MIRROR_MD5SUM),MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM)) $(if $(PKG_MIRROR_HASH),MIRROR_HASH:=$(PKG_MIRROR_HASH)) VERSION:=$(PKG_SOURCE_VERSION) $(if $(PKG_MD5SUM),MD5SUM:=$(PKG_MD5SUM)) $(if $(PKG_HASH),HASH:=$(PKG_HASH)) endef define Download $(eval $(Download/Defaults)) $(eval $(Download/$(1))) $(foreach FIELD,URL FILE $(Validate/$(call dl_method,$(URL),$(PROTO))), ifeq ($($(FIELD)),) $$(error Download/$(1) is missing the $(FIELD) field.) endif ) $(foreach dep,$(DOWNLOAD_RDEP), $(dep): $(DL_DIR)/$(FILE) ) download: $(DL_DIR)/$(FILE) $(DL_DIR)/$(FILE): mkdir -p $(DL_DIR) $(call locked, \ $(if $(DownloadMethod/$(call dl_method,$(URL),$(PROTO))), \ $(call DownloadMethod/$(call dl_method,$(URL),$(PROTO)),check,$(if $(filter default,$(1)),PKG_,Download/$(1):)), \ $(DownloadMethod/unknown) \ ),\ $(FILE)) endef