From 66bfe54de0edbaac83738e71a93b6f7c67fd08af Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 15 Feb 2015 05:56:08 +0000 Subject: build/external/source: only include the necessary files --- resources/scripts/helpers/build/external/source | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/resources/scripts/helpers/build/external/source b/resources/scripts/helpers/build/external/source index 833c1801..bff7b163 100755 --- a/resources/scripts/helpers/build/external/source +++ b/resources/scripts/helpers/build/external/source @@ -29,23 +29,37 @@ rm -f tobuild.tar.xz # this is where they will go mkdir tobuild -cp -r resources/ tobuild/ - # flashrom cp -r flashrom/ tobuild/ cd tobuild/flashrom/ rm -f flashrom_lenovobios_sst flashrom_lenovobios_macronix make clean cd ../../ +mkdir tobuild/resources/ +mkdir tobuild/resources/flashrom/ +cp -r resources/flashrom/patch/ tobuild/resources/flashrom/ # bucts cp -r bucts tobuild/ cd tobuild/bucts/ make clean cd ../../ +mkdir tobuild/resources/bucts/ +cp -r resources/bucts/patch/ tobuild/resources/bucts/ # the build script will be needed cp build tobuild/ +# needed build scripts (helpers) +mkdir tobuild/resources/scripts/ +mkdir tobuild/resources/scripts/helpers/ +mkdir tobuild/resources/scripts/helpers/build/ +mkdir tobuild/resources/scripts/helpers/build/module/ +mkdir tobuild/resources/scripts/helpers/build/clean/ +cp resources/scripts/helpers/build/clean/bucts tobuild/resources/scripts/helpers/build/clean/ +cp resources/scripts/helpers/build/clean/flashrom tobuild/resources/scripts/helpers/build/clean/ +cp resources/scripts/helpers/build/module/bucts tobuild/resources/scripts/helpers/build/module/ +cp resources/scripts/helpers/build/module/flashrom tobuild/resources/scripts/helpers/build/module/ +cp resources/scripts/misc/powertop.trisquel7 tobuild/ # that is all. now tar it up tar -c tobuild | xz -9e >tobuild.tar.xz -- cgit v1.2.3-70-g09d2