Skip to content
Snippets Groups Projects
Commit 81b27814 authored by Seblu's avatar Seblu
Browse files

Remove extra architectures

Currently extra architectures files (Kconfig mainly) was not removed because
the removal occurs before the copy.
parent 79cb0586
No related branches found
No related tags found
No related merge requests found
...@@ -118,11 +118,6 @@ install_sources() { ...@@ -118,11 +118,6 @@ install_sources() {
cp -a include/$i "$kernsrc/include/" cp -a include/$i "$kernsrc/include/"
done done
# remove unneeded architectures
for i in "$kernsrc"/arch/*; do
[[ "$i" != x86 ]] && rm -rf "$i"
done
# copy arch includes for external modules # copy arch includes for external modules
install -d "$kernsrc/arch/x86" install -d "$kernsrc/arch/x86"
cp -a arch/x86/include "$kernsrc/arch/x86/" cp -a arch/x86/include "$kernsrc/arch/x86/"
...@@ -191,6 +186,11 @@ install_sources() { ...@@ -191,6 +186,11 @@ install_sources() {
cp "$i" "$kernsrc/$i" cp "$i" "$kernsrc/$i"
done done
# remove unneeded architectures added by copying Kconfig
for i in "$kernsrc"/arch/*; do
[[ "$i" != x86 ]] && rm -rf "$i"
done
# fix permissions # fix permissions
chown -R root:root "$kernsrc" chown -R root:root "$kernsrc"
find "$kernsrc" -type d -exec chmod 755 {} \; find "$kernsrc" -type d -exec chmod 755 {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment