Adding kernel sources to docker compiler image

This commit is contained in:
Fabio Belavenuto
2023-01-18 09:01:25 -03:00
parent d4c2e8dbca
commit c5e81b59b4
3 changed files with 34 additions and 8 deletions

View File

@@ -18,12 +18,15 @@ function export-vars() {
export ARCH=x86_64
export CC="x86_64-pc-linux-gnu-gcc"
export LD="x86_64-pc-linux-gnu-ld"
export PATH="/opt/${1}/bin:${PATH}"
echo "export PATH=\"/opt/${1}/bin:${PATH}\"" | \
sudo tee /etc/profile.d/path.sh >/dev/null
sudo chmod +x /etc/profile.d/path.sh
}
###############################################################################
function shell() {
#cp /opt/${2}/build/System.map /input
cp -fv /opt/${2}/build/.config /opt/${2}/source/
cp -fv /opt/${2}/build/System.map /opt/${2}/source/
export-vars $2
shift 2
bash -l $@