summaryrefslogtreecommitdiff
path: root/i486-stage1
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-12 20:58:17 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-12 20:58:17 +0100
commitde11dde1ed2ee7892b9e79d404448a965ed0e8dc (patch)
tree0f948d5acb0a71906863c93ece12f95d4ddfb06d /i486-stage1
parent9c18afe15a8138ed7e85fdd0ce84db505e234467 (diff)
downloadbootstrap32-de11dde1ed2ee7892b9e79d404448a965ed0e8dc.tar.xz
added syslinux
Diffstat (limited to 'i486-stage1')
-rw-r--r--i486-stage1/nasm/DESCR11
-rw-r--r--i486-stage1/syslinux/DESCR15
2 files changed, 26 insertions, 0 deletions
diff --git a/i486-stage1/nasm/DESCR b/i486-stage1/nasm/DESCR
new file mode 100644
index 0000000..7a7ecb8
--- /dev/null
+++ b/i486-stage1/nasm/DESCR
@@ -0,0 +1,11 @@
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
+
+# remove all fonts and ghostscript (we don't build the manual)
+sed -i "/makedepends=/s/perl-font-ttf//" PKGBUILD
+sed -i "/makedepends=/s/perl-sort-versions//" PKGBUILD
+sed -i "/makedepends=/s/fontconfig//" PKGBUILD
+sed -i "/makedepends=/s/adobe-source-sans-pro-fonts//" PKGBUILD
+sed -i "/makedepends=/s/ttf-liberation//" PKGBUILD
+sed -i "/makedepends=/s/ghostscript//" PKGBUILD
+sed -i "s/\(make -C doc\)/#\1/" PKGBUILD
diff --git a/i486-stage1/syslinux/DESCR b/i486-stage1/syslinux/DESCR
new file mode 100644
index 0000000..a542c39
--- /dev/null
+++ b/i486-stage1/syslinux/DESCR
@@ -0,0 +1,15 @@
+# disable python
+sed -i "/makedepends=/s/python2//" PKGBUILD
+sed -i "s/make PYTHON=python2/make/" PKGBUILD
+
+# take git from the host
+sed -i "/makedepends=/s/git//" PKGBUILD
+
+# no documentation
+sed -i "/makedepends=/s/asciidoc//" PKGBUILD
+
+# no upx compression
+sed -i "/makedepends=/s/upx//" PKGBUILD
+
+# use the cross compiler
+sed -i "s/\(make \$_targets\)/\1 CC=$TARGET_ARCH-gcc AS=$TARGET_ARCH-as LD=$TARGET_ARCH-ld AR=$TARGET_ARCH-ar/" PKGBUILD