forked from IRATI/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sandboxed kernel header installation (and usage)
- Loading branch information
1 parent
5578146
commit 96e8e67
Showing
9 changed files
with
99 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
# -*- sh -*- | ||
|
||
# | ||
# Written by: Francesco Salvestrini <f DOT salvestrini AT nextworks DOT it> | ||
# | ||
|
||
ME=compile-kernel | ||
|
||
echo "$ME: Compiling kernel" | ||
(cd linux && make bzImage) || { | ||
echo "$ME: Cannot complete kernel compilation" | ||
exit 1 | ||
} | ||
|
||
echo "$ME: Compiling modules" | ||
(cd linux && make modules) || { | ||
echo "$ME: Cannot complete modules compilation" | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
# -*- sh -*- | ||
|
||
# | ||
# Written by: Francesco Salvestrini <f DOT salvestrini AT nextworks DOT it> | ||
# | ||
|
||
ME=install-kernel | ||
|
||
#PREFIX=`echo "$1"|sed -e "s,\/$,,"` | ||
# | ||
#echo "$ME: Prefix is \`$PREFIX'" | ||
#if test -n "$PREFIX" ; then | ||
# mkdir -p $PREFIX || { | ||
# echo "$ME: Cannot create directory \`$PREFIX'" | ||
# } | ||
#fi | ||
|
||
# | ||
# FIXME: we should definitely do a VPATH build ... | ||
# | ||
|
||
echo "$ME: Installing kernel headers" | ||
#(cd linux && make INSTALL_HDR_PATH=/usr headers_install) || { | ||
(cd linux && make headers_install) || { | ||
echo "$ME: Cannot install kernel headers" | ||
exit 1 | ||
} | ||
|
||
echo "$ME: Installing kernel modules" | ||
#(cd linux && make INSTALL_MOD_PATH=$PREFIX modules_install) || { | ||
(cd linux && make modules_install) || { | ||
echo "$ME: Cannot install kernel modules" | ||
exit 1 | ||
} | ||
|
||
echo "$ME: Installing kernel" | ||
#(cd linux && make INSTALL_PATH=$PREFIX/boot install) || { | ||
(cd linux && make install) || { | ||
echo "$ME: Cannot install kernel" | ||
exit 1 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
# -*- sh -*- | ||
|
||
# | ||
# Written by: Francesco Salvestrini <f DOT salvestrini AT nextworks DOT it> | ||
# | ||
|
||
ME=uninstall-user | ||
|
||
echo "$ME: Uninstalling rina-tools" | ||
(cd rina-tools && make uninstall) || { | ||
echo "$ME: Cannot uninstall rina-tools" | ||
exit 1 | ||
} | ||
|
||
echo "$ME: Uninstalling rinad" | ||
(cd rinad && make uninstall) || { | ||
echo "$ME: Cannot uninstall rinad" | ||
exit 1 | ||
} | ||
|
||
echo "$ME: Uninstalling librina" | ||
(cd librina && make uninstall) || { | ||
echo "$ME: Cannot uninstall librina" | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters