about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-08-23 01:46:26 +0100
committerSilvino Silva <silvino@bk.ru>2017-08-23 01:46:26 +0100
commit897b46ed92e47f9f18ed81ff253f698513b3641c (patch)
treec56349b299fdf3030c4d2b43469d457536c128f2
parentceba9ba0fafc4c1d71a64f3808b5c00a9803b16a (diff)
downloaddoc-897b46ed92e47f9f18ed81ff253f698513b3641c.tar.gz
core ports revision, simple configuration
-rw-r--r--core/ports.html54
1 files changed, 19 insertions, 35 deletions
diff --git a/core/ports.html b/core/ports.html
index 6a5e4a8..2d1a17d 100644
--- a/core/ports.html
+++ b/core/ports.html
@@ -73,45 +73,18 @@
         native flag will not run on different hardware. This is the best choice
         if you want gcc to find the best settings based on your hardware.</p>
 
-        <p>Edit /etc/pkgmk.conf and remove pipe from compiler
-        flags;</p>
-
-        <pre>
-        export CFLAGS="-O2 -march=x86-64"
-        </pre>
-
-        <p>If you want native build change the above example to;</p>
-
-        <pre>
-        export CFLAGS="-O2 -march=native -mtune=native"
-        </pre>
-
-        <p>Discover number of cores/cpus to hard code -j option.</p>
-
-        <pre>
-        $ nproc
-        2
-        </pre>
-
-        <p>Set number of cores to use;</p>
-
-        <pre>
-        export MAKEFLAGS="-j2"
-        </pre>
-
-        <p>Example of complete pkgmk.conf for x86_64 with 4 cores, separate
-        distribution files, packages and work directories, uses crux mirror
-        to get the sources.</p>
+        <p>Edit /etc/pkgmk.conf, remove pipe from compiler flags and let the system
+        get from nproc how many cpu's it can use for compiling;</p>
 
         <pre>
         #
         # /etc/pkgmk.conf: pkgmk(8) configuration
         #
 
-        export CFLAGS="-O2 -march=native -mtune=native"
+        export CFLAGS="-O2 -march=x86-64"
         export CXXFLAGS="${CFLAGS}"
 
-        export MAKEFLAGS="-j4"
+        # export MAKEFLAGS="-j$(nproc)"
 
         case ${PKGMK_ARCH} in
                 "64"|"")
@@ -128,11 +101,13 @@
                         ;;
         esac
 
-        #PKGMK_SOURCE_MIRRORS=(http://crux.nu/distfiles/)
-        PKGMK_SOURCE_DIR="/usr/ports/distfiles"
-        PKGMK_PACKAGE_DIR="/usr/ports/packages"
-        PKGMK_WORK_DIR="/usr/ports/work/$name"
+        # PKGMK_SOURCE_MIRRORS=()
+        # PKGMK_SOURCE_DIR="$PWD"
+        # PKGMK_PACKAGE_DIR="$PWD"
+        # PKGMK_WORK_DIR="$PWD/work"
         # PKGMK_DOWNLOAD="no"
+        # PKGMK_IGNORE_SIGNATURE="no"
+        # PKGMK_IGNORE_MD5SUM="no"
         # PKGMK_IGNORE_FOOTPRINT="no"
         # PKGMK_IGNORE_NEW="no"
         # PKGMK_NO_STRIP="no"
@@ -144,6 +119,15 @@
         # End of file
         </pre>
 
+        <p>If you want native build change the above example to;</p>
+
+        <pre>
+        export CFLAGS="-O2 -march=native -mtune=native"
+        </pre>
+
+        <p>Check <a href="toolchain.html">toolchain</a> for more options on how packages
+        are build.</p>
+
         <h2 id="prtget">1.3.4. Configure prt-get</h2>
 
         <p>Edit /etc/prt-get.conf;</p>