-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added 3 changes: #29
base: main
Are you sure you want to change the base?
Added 3 changes: #29
Conversation
1) In profile PACKAGE_REPOS env allows you to add new repositories. But running onion_buildenv update_sdk overwrite and changes made to repositories.conf with the openwrt defaults. Added - prefix to any feed in PACKAGE_REPOS, will filter out those feeds when running onion_buildenv update_sdk 2) Added env DATE_VERSION to profile, if set to "n" the date will no longer be appended to the filename of the generated firmware file 3) Deleting files from the "additions" directory tree were not reflected when building. Added new function clean_additions() to remove all additions when running update_imagebuilder
Consolidated the 3 previous pull request into a single PR |
@crispyoz in general, we prefer to keep each PR to a single change. And it looks like your own I suggest making issues to discuss these items one by one. Here are my initial comments on the changes:
|
|
Item 1: removing feedsthink having extra feeds adds a lot of time when using the SDK, but it shouldn't add a lot of time with the image builder. While the image builder does read the contents of the listed repos, this operation should be fast. From my terminal output it looks like most of the time is spent downloading the packages that need to be installed. On an AWS EC2 instance, it takes just over 1 minute to do both the setup and build steps:
This minus repo feature should definitely be added to the SDK though! Updating repos for the SDK involves pulling a bunch of code repos. It would save a ton of time to remove some repos Item 2: date in firmware image filenamesI see what you're saying. I'd still like to keep the profile for the onion firmware simple. Item 3: cleaning
|
Yes you are correct. It is more of an isssue for the sdk. The folly of combining multiple PRs. I added the chaange to both my sdk and imagebuilder in order to keep thing consistent
Sent from Proton Mail Android
…-------- Original Message --------
On 19/2/25 11:43, Lazar wrote:
***@***.***(https://github.com/crispyoz)
Item 1: removing feeds
think having extra feeds adds a lot of time when using the SDK, but it shouldn't add a lot of time with the image builder. While the image builder does read the contents of the listed repos, this operation should be fast. From my terminal output it looks like most of the time is spent downloading the packages that need to be installed.
On an AWS EC2 instance, it takes just over 1 minute to do both the setup and build steps:
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv setup_imagebuilder
> Downloading compressed Image Builder
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66.2M 100 66.2M 0 0 21.7M 0 0:00:03 0:00:03 --:--:-- 21.7M
> Verifying download
> Extracting compressed Image Builder
> Updating Image Builder Package Repos
> Preparing Image Builder
real 0m13.848s
user 0m10.131s
sys 0m2.492s
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv build_all_firmware
> Building all firmware images
> Building onion_omega2 firmware image
make: Entering directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
...
make: Leaving directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
> Compiled firmware at /home/ubuntu/openwrt-imagebuilder-wrapper/output
real 0m47.607s
user 0m39.126s
sys 0m11.706s
This minus repo feature should definitely be added to the SDK though! Updating repos for the SDK involves pulling a bunch of code repos. It would save a ton of time to remove some repos
Item 2: date in firmware image filenames
I see what you're saying. I'd still like to keep the profile for the onion firmware simple.
How about: by default the filename includes the date. But if the profile has a DATE_VERSION=n then the datecode is removed from the filenames?
Item 3: cleaning files dir
I think your solution is solid. Can you please make a PR with just that change?
—
Reply to this email directly, [view it on GitHub](#29 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AIW6VSJANH4ZT7GJAMQJKOD2QPHR5AVCNFSM6AAAAABXELOF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXGI2DCMBWHA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
[greenbreakfast]greenbreakfast left a comment [(OnionIoT/openwrt-imagebuilder-wrapper#29)](#29 (comment))
***@***.***(https://github.com/crispyoz)
Item 1: removing feeds
think having extra feeds adds a lot of time when using the SDK, but it shouldn't add a lot of time with the image builder. While the image builder does read the contents of the listed repos, this operation should be fast. From my terminal output it looks like most of the time is spent downloading the packages that need to be installed.
On an AWS EC2 instance, it takes just over 1 minute to do both the setup and build steps:
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv setup_imagebuilder
> Downloading compressed Image Builder
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66.2M 100 66.2M 0 0 21.7M 0 0:00:03 0:00:03 --:--:-- 21.7M
> Verifying download
> Extracting compressed Image Builder
> Updating Image Builder Package Repos
> Preparing Image Builder
real 0m13.848s
user 0m10.131s
sys 0m2.492s
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv build_all_firmware
> Building all firmware images
> Building onion_omega2 firmware image
make: Entering directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
...
make: Leaving directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
> Compiled firmware at /home/ubuntu/openwrt-imagebuilder-wrapper/output
real 0m47.607s
user 0m39.126s
sys 0m11.706s
This minus repo feature should definitely be added to the SDK though! Updating repos for the SDK involves pulling a bunch of code repos. It would save a ton of time to remove some repos
Item 2: date in firmware image filenames
I see what you're saying. I'd still like to keep the profile for the onion firmware simple.
How about: by default the filename includes the date. But if the profile has a DATE_VERSION=n then the datecode is removed from the filenames?
Item 3: cleaning files dir
I think your solution is solid. Can you please make a PR with just that change?
—
Reply to this email directly, [view it on GitHub](#29 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AIW6VSJANH4ZT7GJAMQJKOD2QPHR5AVCNFSM6AAAAABXELOF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXGI2DCMBWHA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
2) that was exactly what the PR does.
3) will do.
Sent from Proton Mail Android
…-------- Original Message --------
On 19/2/25 11:43, Lazar wrote:
***@***.***(https://github.com/crispyoz)
Item 1: removing feeds
think having extra feeds adds a lot of time when using the SDK, but it shouldn't add a lot of time with the image builder. While the image builder does read the contents of the listed repos, this operation should be fast. From my terminal output it looks like most of the time is spent downloading the packages that need to be installed.
On an AWS EC2 instance, it takes just over 1 minute to do both the setup and build steps:
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv setup_imagebuilder
> Downloading compressed Image Builder
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66.2M 100 66.2M 0 0 21.7M 0 0:00:03 0:00:03 --:--:-- 21.7M
> Verifying download
> Extracting compressed Image Builder
> Updating Image Builder Package Repos
> Preparing Image Builder
real 0m13.848s
user 0m10.131s
sys 0m2.492s
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv build_all_firmware
> Building all firmware images
> Building onion_omega2 firmware image
make: Entering directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
...
make: Leaving directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
> Compiled firmware at /home/ubuntu/openwrt-imagebuilder-wrapper/output
real 0m47.607s
user 0m39.126s
sys 0m11.706s
This minus repo feature should definitely be added to the SDK though! Updating repos for the SDK involves pulling a bunch of code repos. It would save a ton of time to remove some repos
Item 2: date in firmware image filenames
I see what you're saying. I'd still like to keep the profile for the onion firmware simple.
How about: by default the filename includes the date. But if the profile has a DATE_VERSION=n then the datecode is removed from the filenames?
Item 3: cleaning files dir
I think your solution is solid. Can you please make a PR with just that change?
—
Reply to this email directly, [view it on GitHub](#29 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AIW6VSJANH4ZT7GJAMQJKOD2QPHR5AVCNFSM6AAAAABXELOF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXGI2DCMBWHA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
[greenbreakfast]greenbreakfast left a comment [(OnionIoT/openwrt-imagebuilder-wrapper#29)](#29 (comment))
***@***.***(https://github.com/crispyoz)
Item 1: removing feeds
think having extra feeds adds a lot of time when using the SDK, but it shouldn't add a lot of time with the image builder. While the image builder does read the contents of the listed repos, this operation should be fast. From my terminal output it looks like most of the time is spent downloading the packages that need to be installed.
On an AWS EC2 instance, it takes just over 1 minute to do both the setup and build steps:
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv setup_imagebuilder
> Downloading compressed Image Builder
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66.2M 100 66.2M 0 0 21.7M 0 0:00:03 0:00:03 --:--:-- 21.7M
> Verifying download
> Extracting compressed Image Builder
> Updating Image Builder Package Repos
> Preparing Image Builder
real 0m13.848s
user 0m10.131s
sys 0m2.492s
***@***.***:~/openwrt-imagebuilder-wrapper$ time bash onion_buildenv build_all_firmware
> Building all firmware images
> Building onion_omega2 firmware image
make: Entering directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
...
make: Leaving directory '/home/ubuntu/openwrt-imagebuilder-wrapper/openwrt-imagebuilder'
> Compiled firmware at /home/ubuntu/openwrt-imagebuilder-wrapper/output
real 0m47.607s
user 0m39.126s
sys 0m11.706s
This minus repo feature should definitely be added to the SDK though! Updating repos for the SDK involves pulling a bunch of code repos. It would save a ton of time to remove some repos
Item 2: date in firmware image filenames
I see what you're saying. I'd still like to keep the profile for the onion firmware simple.
How about: by default the filename includes the date. But if the profile has a DATE_VERSION=n then the datecode is removed from the filenames?
Item 3: cleaning files dir
I think your solution is solid. Can you please make a PR with just that change?
—
Reply to this email directly, [view it on GitHub](#29 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AIW6VSJANH4ZT7GJAMQJKOD2QPHR5AVCNFSM6AAAAABXELOF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXGI2DCMBWHA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
In profile PACKAGE_REPOS env allows you to add new repositories. But running onion_buildenv update_sdk overwrite and changes made to repositories.conf with the openwrt defaults. Added - prefix to any feed in PACKAGE_REPOS, will filter out those feeds when running onion_buildenv update_sdk
Added env DATE_VERSION to profile, if set to "n" the date will no longer be appended to the filename of the generated firmware file
Deleting files from the "additions" directory tree were not reflected when building. Added new function clean_additions() to remove all additions when running update_imagebuilder