18 lines
573 B
Bash
18 lines
573 B
Bash
#!/bin/sh
|
|
|
|
. ./scripts/colors.sh
|
|
. ./scripts/funcs.sh
|
|
. ./scripts/config.sh
|
|
|
|
lm_sensors() {
|
|
printf "$GREEN** Building and installing lm_sensors\n$RESET"
|
|
mkdir -pv $build/lm_sensors
|
|
cd $build/lm_sensors
|
|
git clone https://github.com/lm-sensors/lm-sensors.git
|
|
cd lm-sensors
|
|
make CC=$CROSS_COMPILE-gcc PREFIX=/usr DESTDIR=$rootfspath install -j$(nproc)
|
|
rm -rf $rootfspath/usr/man $rootfspath/usr/include
|
|
find $rootfspath -type f -name "*.a" -delete
|
|
${CROSS_COMPILE}-strip $rootfspath/usr/bin/* $rootfspath/usr/lib/* $rootfspath/usr/sbin/*
|
|
}
|