Don't compile cross-compiler packages for the host arch

Example: Building gcc-armhf for armhf does not make sense, so this
commit changes arch="all" to arch="aarch64 x86_64". This helps to
simplify the repository scripts (#970).
This commit is contained in:
Oliver Smith 2018-01-20 19:17:23 +01:00
parent 17122cf242
commit 9f674675eb
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
12 changed files with 34 additions and 20 deletions

View file

@ -29,10 +29,15 @@ def generate(args, pkgname):
pmb.helpers.git.clone(args, "aports_upstream")
pmb.helpers.run.user(args, ["cp", "-r", upstream, args.work + "/aportgen"])
# Architectures to build this package for
arches = list(pmb.config.build_device_architectures)
arches.remove(arch)
# Rewrite APKBUILD
fields = {
"pkgname": pkgname,
"pkgdesc": "Tools necessary to build programs for " + arch + " targets",
"arch": " ".join(arches),
"makedepends_build": "",
"makedepends_host": "",
"makedepends": "gettext libtool autoconf automake bison",