forked from Mirror/pmbootstrap
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:
parent
17122cf242
commit
9f674675eb
12 changed files with 34 additions and 20 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue