summaryrefslogtreecommitdiffstats
path: root/scripts/bootstrap
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-27 02:34:08 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-10-27 02:34:08 +0100
commitfade0570ec676c3106f866040f913cedcdcef4cc (patch)
tree3c4ebf758d6aa3f5c47718ffeb53c2bbfc2211a0 /scripts/bootstrap
parent5405fe336b06678a6a61b7d2689a5f488a7a084b (diff)
downloadgentoo-fade0570ec676c3106f866040f913cedcdcef4cc.tar.gz
gentoo-fade0570ec676c3106f866040f913cedcdcef4cc.tar.bz2
gentoo-fade0570ec676c3106f866040f913cedcdcef4cc.tar.xz
gentoo-fade0570ec676c3106f866040f913cedcdcef4cc.zip
Fix building mkinitrd
Diffstat (limited to 'scripts/bootstrap')
-rw-r--r--scripts/bootstrap/fix_deps.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/bootstrap/fix_deps.sh b/scripts/bootstrap/fix_deps.sh
index 2cccf4b..c5ccd3b 100644
--- a/scripts/bootstrap/fix_deps.sh
+++ b/scripts/bootstrap/fix_deps.sh
@@ -1,9 +1,17 @@
#! /bin/bash
# Ncurses/GPM, pam/caps, pkgconfig/glib circular dependency
-USE="${USE} -gpm" emerge -1 ncurses
-USE="${USE} -filecaps" emerge -1 pam
-USE="${USE} internal-glib" emerge -1 pkgconfig
+if [ ! /usr/bin/pkg-config ]; then
+ USE="${USE} -gpm" emerge -1 ncurses
+ USE="${USE} -filecaps" emerge -1 pam
+ USE="${USE} internal-glib" emerge -1 pkgconfig
+fi
+
+# Some applications requires latest version of OpenCL standard, intel provides one
+[ -f /etc/OpenCL/vendors/intelocl64.icd ] || emerge -u1 intel-ocl-sdk && eselect opencl set intel
+
+# Preparing kernel
+[ -f /usr/src/linux/.config ] || emerge -1 gentoo-sources && yes "" | make -C /usr/src/linux oldconfig
# Unmerge
#emerge --depclean -a