59 lines
2.1 KiB
Plaintext
59 lines
2.1 KiB
Plaintext
--- a/config.mak.dist 2020-08-02 20:42:16.000000000 +0000
|
|
+++ b/config.mak.dist 2020-10-04 22:00:17.690000000 +0000
|
|
@@ -4,6 +4,36 @@
|
|
# Copy to config.mak and edit as desired.
|
|
#
|
|
|
|
+# <fox-edits>
|
|
+
|
|
+# fox has edited this file to suit their own machine.
|
|
+# these edits come from the 'patch' file in the package directory and have not
|
|
+# been committed upstream, so a 'git diff' should reveal the changes they made
|
|
+# and a 'git checkout config.mak.dist' should undo those changes.
|
|
+
|
|
+# compile against the headers being used. need both lines for this to work.
|
|
+LINUX_VER=
|
|
+LINUX_SRCDIR=/include/linux
|
|
+
|
|
+# fox's target
|
|
+TARGET=powerpc64le-lix-linux-musl
|
|
+BUILD=$(TARGET) # uncomment when rebuilding after reboot
|
|
+#NATIVE=yes # uncomment when rebuilding after reboot
|
|
+
|
|
+# compilation on a static-only system will fail if the 'static' flags are not
|
|
+# set in the CC variable because some configure scripts don't use the
|
|
+# {LD,C,CXX}FLAGS when checking if the compiler works.
|
|
+COMMON_CONFIG += CC="gcc" CXX="g++"
|
|
+COMMON_CONFIG += CFLAGS="-g0 -Os -fPIC -Wno-error=parentheses"
|
|
+COMMON_CONFIG += CXXFLAGS="-g0 -Os -fPIC"
|
|
+#COMMON_CONFIG += LDFLAGS="-s -static --static"
|
|
+
|
|
+# decimal-float compiles fine under the bootstrap distro (Alpine) but breaks on
|
|
+# recompilation in mu-os. haven't worked out why yet, so this is a workaround.
|
|
+GCC_CONFIG += --disable-libquadmath --disable-decimal-float --enable-default-ssp
|
|
+
|
|
+# </fox-edits>
|
|
+
|
|
# There is no default TARGET; you must select one here or on the make
|
|
# command line. Some examples:
|
|
|
|
@@ -22,6 +52,9 @@
|
|
# OUTPUT = /opt/cross
|
|
# OUTPUT = /usr/local
|
|
|
|
+# DON'T CHANGE THIS UNLESS YOU ALSO EDIT inst.sh
|
|
+OUTPUT=/
|
|
+
|
|
# By default, latest supported release versions of musl and the toolchain
|
|
# components are used. You can override those here, but the version selected
|
|
# must be supported (under hashes/ and patches/) to work. For musl, you
|
|
@@ -44,7 +77,7 @@
|
|
# By default source archives are downloaded with wget. curl is also an option.
|
|
|
|
# DL_CMD = wget -c -O
|
|
-# DL_CMD = curl -C - -L -o
|
|
+DL_CMD = curl -C - -L -o
|
|
|
|
# Check sha-1 hashes of downloaded source archives. On gnu systems this is
|
|
# usually done with sha1sum.
|