Skip to content
Snippets Groups Projects
Commit f0ac4f43 authored by Luis Gerhorst's avatar Luis Gerhorst Committed by Bernhard Heinloth
Browse files

Install script no longer required since code is in kernel

parent 5434e79e
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
SCRIPT_BASE=`dirname "$0"`
KERNEL_BASE=$1
if [ ! -z $KERNEL_BASE ]
then
SCRIPT_BASE_ABS=$(cd $SCRIPT_BASE/..; pwd)
ln -v -s -T $SCRIPT_BASE_ABS $KERNEL_BASE/arch/arm/measuremore
PARENT_KCONFIG=$KERNEL_BASE/arch/arm/Kconfig.debug
KCONFIG_SOURCE_LINE='source "arch/arm/measuremore/Kconfig"'
if grep -Fxq "$KCONFIG_SOURCE_LINE" $PARENT_KCONFIG
then
echo "Kconfig already sourced."
else
echo "Please insert \n$KCONFIG_SOURCE_LINE\ninto\n$PARENT_KCONFIG"
exit 1
fi
PARENT_MAKEFILE=$KERNEL_BASE/arch/arm/Makefile
MAKE_LINE='core-y += arch/arm/measuremore/'
if grep -Fxq "$MAKE_LINE" $PARENT_MAKEFILE
then
echo "Makefile is referenced."
else
echo "\n$MAKE_LINE" >> $PARENT_MAKEFILE
exit 1
fi
else
echo "Usage: $0 KERNEL_BASE"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment