1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/util-linux/util-linux.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 if [ $prefix_auto = 1 ]; then
18 var_append extraconfopt ' ' '--datarootdir=$datadir'
19 var_append makeopt ' ' "usrbin_execdir=/usr/bin usrsbin_execdir=/usr/sbin usrlib_execdir=/usr/${libdir##*/}"
20 var_append makeinstopt ' ' "usrbin_execdir=/usr/bin usrsbin_execdir=/usr/sbin usrlib_execdir=/usr/${libdir##*/}"
23 atstage native || var_append extraconfopt ' ' '--without-python'
25 # partx is nice to have (we ship it since a long time) and kill is usually
26 # supplied by other packages (procps, busybox, embutils, etc.)
27 var_append extraconfopt ' ' '--enable-partx --disable-kill'
29 # cross build tweak, I started patching it but stopped at the 20th file
30 if atstage cross && [ $SDECFG_LIBC = 'uclibc' ]; then
31 var_append GCC_WRAPPER_APPEND ' ' '--include locale.h'
34 [ $arch_machine = "riscv32" ] && var_append extraconfopt ' ' '--disable-hwclock'
36 var_append GCC_WRAPPER_APPEND ' ' -std=gnu99
38 pkginstalled python || var_append extraconfopt ' ' '--without-python'
39 pkginstalled ncurses || var_append extraconfopt ' ' '--without-ncurses'
40 pkginstalled shadow && var_append extraconfopt ' ' '--disable-su --disable-login --disable-nologin --disable-chfn-chsh'
41 pkginstalled sysvinit && var_append extraconfopt ' ' '--disable-sulogin --disable-last --disable-mesg --disable-lastb'
42 #pkginstalled cryptsetup && var_append extraconfopt ' ' '--with-cryptsetup'
43 pkginstalled eject && var_append extraconfopt ' ' '--disable-eject'
45 hook_add postmake 5 '$CC $confdir/freeramdisk.c -o $root/sbin/freeramdisk'