1ee997e832
As it happens, adding another architecture required almost no changes; native 32-bit ppc build took only ARCH and a repo, qemu-ppc one still has problems (/.host/entry hangs while unpacking setup for fakedata). Proof of concept on a QS22: $ make ve/bare.tar.gz ** ARCH: ppc /bin/sh: rpmvercmp: command not found 21:41:01 cleaning up 21:41:03 initializing BUILDDIR: build/ 21:41:03 preparing distro config 21:41:05 starting image build (coffee time) 21:42:48 done (1:42) ** image: $TMP/out/bare-20120716-ppc.tar.gz [21M]
31 lines
1.0 KiB
Makefile
31 lines
1.0 KiB
Makefile
# globals
|
|
PKGDIR := $(GLOBAL_BUILDDIR)/pkg
|
|
|
|
# duplicated from metaprofile makefiles for the sake of "local" builds
|
|
ARCH ?= $(shell arch | sed 's/i686/i586/; s/armv.*/arm/; s/ppc.*/ppc/')
|
|
DATE ?= $(shell date +%Y%m%d)
|
|
|
|
# prefix pkglist name with its directory to form a path (relative/absolute)
|
|
rlist = $(1:%=lists/%)
|
|
list = $(addprefix $(PKGDIR)/,$(call rlist,$(1)))
|
|
|
|
# prefix/suffix group name to form a path (relative/absolute)
|
|
rgroup = $(1:%=groups/%.directory)
|
|
group = $(addprefix $(PKGDIR)/,$(call rgroup,$(1)))
|
|
|
|
# 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 = $(and $(1),$(2), \
|
|
^kernel-(image|modules-($(call list2re,$(1))))-($(call list2re,$(2)))$$)
|
|
|
|
# arg: branding subpackages
|
|
branding = $(and $(1),^branding-$(BRANDING)-($(call list2re,$(1)))$$)
|