roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

build script cleanups #105

Closed darkxst closed 1 year ago

darkxst commented 1 year ago

A couple more cleanups to build scripts now that sudo is no longer required to pack firmware.

Also deduplicate code between the compile scripts. I left the compile_ci_post.sh in there even though it doesnt appear to be used, could be useful for anyone wanting to add custom files onto sdcard as part of build.

roleoroleo commented 1 year ago

I need to mantain somewhere the export of the path: export PATH="/home/user/x-tools/arm-sonoff-linux-uclibcgnueabi/bin:$PATH" for example in compile_ci_pre.sh I think that this change doesn't affect the container build.

darkxst commented 1 year ago

ok, the comment made it sound like it was only there for the sudo step, which is not required aynmore when running pack_fw. and yeh it wont affect container or github builds. However lets only export if the directory exists.