Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-16 12:08:52 +0200
committerErich Eckner <git@eckner.net>2022-12-08 12:57:22 +0100
commitb44a7b5a78315a6eea2a9cc1860e0d79a01b0ca9 (patch)
tree53395cd9ad20714f09a9d6688e4c9375de32ee72
parentca1724845fe16f947ad10e7f39eb1c5c2dd04aab (diff)
auto-generate armv6h configs and symlinks
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 549c87e..69deba2 100644
--- a/Makefile
+++ b/Makefile
@@ -13,24 +13,30 @@ SETARCH_ALIASES = $(wildcard config/setarch-aliases.d/*)
MANS = $(addprefix $(BUILDDIR)/,$(patsubst %.asciidoc,%,$(wildcard doc/man/*.asciidoc)))
GENERATED_CONFIGS = \
+ pacman-extra-armv6h.conf \
pacman-extra-i486.conf \
pacman-extra-i686.conf \
pacman-extra-pentium4.conf \
+ pacman-testing-armv6h.conf \
pacman-testing-i486.conf \
pacman-testing-i686.conf \
pacman-testing-pentium4.conf \
+ pacman-staging-armv6h.conf \
pacman-staging-i486.conf \
pacman-staging-i686.conf \
pacman-staging-pentium4.conf \
pacman-staging-with-build-support-i486.conf \
pacman-staging-with-build-support-i686.conf \
pacman-staging-with-build-support-pentium4.conf \
+ pacman-kde-unstable-armv6h.conf \
pacman-kde-unstable-i486.conf \
pacman-kde-unstable-i686.conf \
pacman-kde-unstable-pentium4.conf \
+ pacman-gnome-unstable-armv6h.conf \
pacman-gnome-unstable-i486.conf \
pacman-gnome-unstable-i686.conf \
pacman-gnome-unstable-pentium4.conf \
+ makepkg-armv6h.conf \
makepkg-i486.conf \
makepkg-i686.conf \
makepkg-pentium4.conf
@@ -50,16 +56,19 @@ COMMITPKG_LINKS = \
gnome-unstablepkg
ARCHBUILD_LINKS = \
+ extra-armv6h-build \
extra-i486-build \
extra-i686-build \
extra-pentium4-build \
extra-x86_64-build \
extra-x86_64_v3-build \
+ testing-armv6h-build \
testing-i486-build \
testing-i686-build \
testing-pentium4-build \
testing-x86_64-build \
testing-x86_64_v3-build \
+ staging-armv6h-build \
staging-i486-build \
staging-i686-build \
staging-pentium4-build \
@@ -71,10 +80,12 @@ ARCHBUILD_LINKS = \
multilib-build \
multilib-testing-build \
multilib-staging-build \
+ kde-unstable-armv6h-build \
kde-unstable-i486-build \
kde-unstable-i686-build \
kde-unstable-pentium4-build \
kde-unstable-x86_64-build \
+ gnome-unstable-armv6h-build \
gnome-unstable-i486-build \
gnome-unstable-i686-build \
gnome-unstable-pentium4-build \
@@ -114,6 +125,14 @@ endif
edit = sed -e "s|@pkgdatadir[@]|$(PREFIX)/share/devtools|g"
GEN_MSG = @echo "GEN $(patsubst $(BUILDDIR)/%,%,$@)"
+$(BUILDDIR)/config/makepkg-armv6h.conf: config/makepkg/x86_64.conf
+ @echo "GEN $(notdir $@)"
+ @mkdir -p $(dir $@)
+ @sed " s/^CARCH=.*\$$/CARCH=\"armv6h\"/g; \
+ s/^CHOST=.*\$$/CHOST=\"armv6l-unknown-linux-gnueabihf\"/g; \
+ s/^\(C\(XX\)\?FLAGS=\).*\$$/\1\"-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector-strong -fno-plt\"/g; \
+ " "$<" > "$@"
+
$(BUILDDIR)/config/makepkg-i486.conf: config/makepkg/x86_64.conf
@echo "GEN $(notdir $@)"
@mkdir -p $(dir $@)
@@ -137,6 +156,13 @@ $(BUILDDIR)/config/makepkg-pentium4.conf: $(BUILDDIR)/config/makepkg-i686.conf
@mkdir -p $(dir $@)
@sed '/^CHOST=/ ! s,\(["=]\)i686\([-" ]\),\1pentium4\2,g' "$<" > "$@"
+$(BUILDDIR)/config/pacman-%-armv6h.conf: config/pacman/%.conf
+ @echo "GEN $(notdir $@)"
+ @mkdir -p $(dir $@)
+ @sed " \
+ /^Architecture = / s/^.*\$$/Architecture = armv6h/; \
+ " "$<" > "$@"
+
$(BUILDDIR)/config/pacman-%-i486.conf: config/pacman/%.conf
@echo "GEN $(notdir $@)"
@mkdir -p $(dir $@)