From 27f4dc8a32540c2bbf9ccfcce9c2dd5976d57b76 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Tue, 23 Feb 2021 06:52:42 +0100 Subject: [PATCH] do not build chromium and qtwebengine at full parallell as we'd run out of memory... --- profiles/targets/desktop/bashrc/half_parallell.rc | 2 ++ profiles/targets/desktop/bashrc/no_parallell.rc | 1 + profiles/targets/desktop/package.bashrc/chromium | 1 + profiles/targets/desktop/package.bashrc/qtwebengine | 1 + 4 files changed, 5 insertions(+) create mode 100644 profiles/targets/desktop/bashrc/half_parallell.rc create mode 100644 profiles/targets/desktop/bashrc/no_parallell.rc create mode 100644 profiles/targets/desktop/package.bashrc/chromium create mode 100644 profiles/targets/desktop/package.bashrc/qtwebengine diff --git a/profiles/targets/desktop/bashrc/half_parallell.rc b/profiles/targets/desktop/bashrc/half_parallell.rc new file mode 100644 index 0000000..566e829 --- /dev/null +++ b/profiles/targets/desktop/bashrc/half_parallell.rc @@ -0,0 +1,2 @@ +nr_cpu=$(lscpu -p | egrep -v '^#' | wc -l) +MAKEOPTS="-j$(( ${nr_cpu}/2 ))" diff --git a/profiles/targets/desktop/bashrc/no_parallell.rc b/profiles/targets/desktop/bashrc/no_parallell.rc new file mode 100644 index 0000000..1b43095 --- /dev/null +++ b/profiles/targets/desktop/bashrc/no_parallell.rc @@ -0,0 +1 @@ +MAKEOPTS="-j1" diff --git a/profiles/targets/desktop/package.bashrc/chromium b/profiles/targets/desktop/package.bashrc/chromium new file mode 100644 index 0000000..d772b38 --- /dev/null +++ b/profiles/targets/desktop/package.bashrc/chromium @@ -0,0 +1 @@ +www-client/chromium half_parallell.rc diff --git a/profiles/targets/desktop/package.bashrc/qtwebengine b/profiles/targets/desktop/package.bashrc/qtwebengine new file mode 100644 index 0000000..eb76623 --- /dev/null +++ b/profiles/targets/desktop/package.bashrc/qtwebengine @@ -0,0 +1 @@ +dev-qt/qtwebengine half_parallell.rc