aboutsummaryrefslogtreecommitdiff
path: root/config.def
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-17 14:18:46 +0300
committerCem Keylan <cem@ckyln.com>2020-06-17 14:18:46 +0300
commitfd7c3e4c5bcf3f4a240f3ed9743abe03ee841cbb (patch)
treee2d968811ffe1950f191b565a4db00c121662563 /config.def
parent2b6beea8e1dfa54652c7b98d76e3f8b91dbfc41d (diff)
downloadmkrootfs-fd7c3e4c5bcf3f4a240f3ed9743abe03ee841cbb.tar.gz
config: merge config.i686 and update package list
Diffstat (limited to 'config.def')
-rw-r--r--config.def17
1 files changed, 13 insertions, 4 deletions
diff --git a/config.def b/config.def
index aaf6ff7..da11627 100644
--- a/config.def
+++ b/config.def
@@ -10,14 +10,23 @@ MNTDIR="$PWD/rootfs"
# Most of those are already dependencies
# of each other but it is not a bad idea
# to put them to the list anyway.
-PKGS="baselayout kiss musl gcc make gzip xz zlib bzip2 binutils bison curl linux-headers m4 flex busybox pkgconf rsync libressl"
+PKGS="baselayout kiss musl gcc make gzip xz zlib bzip2 binutils byacc curl \
+ linux-headers m4 flex busybox pkgconf rsync bearssl"
# Build flags
# It is a good idea to not use flags like "native"
# If you plan on using the tarball on another computer
-# due to architechtural differences.
-CFLAGS="-march=x86-64 -mtune=generic -pipe -Os"
-CXXFLAGS="-march=x86-64 -mtune=generic -pipe -Os"
+# due to architechtural differences. You can manually
+# override this march configuration here by removing the
+# case.
+#
+march=$(uname -m)
+case "$march" in
+ x86_64) march=x86-64 ;;
+ i*86) march=i686 ;;
+esac
+CFLAGS="-march=$march -mtune=generic -pipe -Os"
+CXXFLAGS="-march=$march -mtune=generic -pipe -Os"
MAKEFLAGS="-j$(nproc)"
# Repository