77115ff50b
If the build is (re-)run withing generated profile directory, the makefiles no longer have ARCH passed by upstream -- the upstream might be unreachable at that point indeed. This is unfortunate but we should cope with that. NB: might be revisited when architecture-specific packagelists emerge since currently there's no difference in package lists so we can just re-run the build for a different architecture but this might change...
24 lines
762 B
Makefile
24 lines
762 B
Makefile
# globals
|
|
PKGDIR := $(GLOBAL_BUILDDIR)/pkg
|
|
|
|
### duplicated from toplevel build.mk, log.mk for sake of "local" builds
|
|
ARCH ?= $(shell arch | sed 's/i686/i586/')
|
|
DATE ?= $(shell date +%Y%m%d)
|
|
|
|
# prefix pkglist name with its directory to form a path
|
|
list = $(1:%=$(PKGDIR)/lists/%)
|
|
|
|
# prefix/suffix group name to form a path
|
|
group = $(1:%=$(PKGDIR)/groups/%.directory)
|
|
|
|
# map first argument (a function) onto second one (an argument list)
|
|
map = $(foreach a,$(2),$(call $(1),$(a)))
|
|
|
|
# kernel package list generation; see also #24669
|
|
NULL :=
|
|
SPACE := $(NULL) # the officially documented way of getting a space
|
|
|
|
list2re = $(subst $(SPACE),|,$(strip $(1)))
|
|
# args: KMODULES, KFLAVOURS
|
|
kpackages = ^kernel-(image|modules-($(call list2re,$(1))))-($(call list2re,$(2)))$$
|