diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-12 20:49:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-12 20:49:54 +0000 |
commit | 69c9cad2a1144523a6534a184064601e6cc8d48c (patch) | |
tree | a6707cab21cdb4936905ec876e354466e8c90153 /include | |
parent | 306fd791257af34804c8f7b3322bef61a517d56c (diff) | |
download | upstream-69c9cad2a1144523a6534a184064601e6cc8d48c.tar.gz upstream-69c9cad2a1144523a6534a184064601e6cc8d48c.tar.bz2 upstream-69c9cad2a1144523a6534a184064601e6cc8d48c.zip |
[buildroot] Implement an ARCH_PACKAGES variable which defaults to BOARD but can be overridden on a per-subtarget basis.
This is intended for targets such as adm5120 and malta which support both big and little endianess and will replace
the target specific exceptions in package-defaults and Image Builder.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23029 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/package-defaults.mk | 6 | ||||
-rw-r--r-- | include/target.mk | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 649f409f50..f17653b7fe 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -23,10 +23,10 @@ define Package/Default else VERSION:=$(PKG_RELEASE) endif - ifneq ($(CONFIG_TARGET_adm5120),y) - PKGARCH:=$(BOARD) + ifneq ($(ARCH_PACKAGES),) + PKGARCH:=$(ARCH_PACKAGES) else - PKGARCH:=$(BOARD)_$(ARCH) + PKGARCH:=$(BOARD) endif PRIORITY:=optional DEFAULT:= diff --git a/include/target.mk b/include/target.mk index d49714c353..9744a7ca7e 100644 --- a/include/target.mk +++ b/include/target.mk @@ -178,6 +178,7 @@ define BuildTargets/DumpCurrent echo 'Target-Name: $(BOARDNAME)$(if $(SUBTARGETS),$(if $(SUBTARGET),))'; \ echo 'Target-Path: $(subst $(TOPDIR)/,,$(PWD))'; \ echo 'Target-Arch: $(ARCH)'; \ + echo 'Target-Arch-Packages: $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(BOARD))'; \ echo 'Target-Features: $(FEATURES)'; \ echo 'Target-Depends: $(DEPENDS)'; \ echo 'Target-Optimization: $(if $(CFLAGS),$(CFLAGS),$(DEFAULT_CFLAGS))'; \ |