Page MenuHomeFreeBSD

nanobsd: Source legacy.sh on demand instead of unconditionally
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Tue, Aug 25, 6:06 AM.
Tags
None
Referenced Files
F168811329: D59166.id185271.diff
Sun, Aug 30, 6:40 AM
F168810895: D59166.id185391.diff
Sun, Aug 30, 6:38 AM
F168729711: D59166.id185007.diff
Sat, Aug 29, 8:43 PM
F168710404: D59166.id185007.diff
Sat, Aug 29, 6:28 PM
F168699609: D59166.id185391.diff
Sat, Aug 29, 5:05 PM
Unknown Object (File)
Sat, Aug 29, 1:51 AM
Unknown Object (File)
Fri, Aug 28, 5:06 PM
Unknown Object (File)
Fri, Aug 28, 12:23 PM
Subscribers

Details

Summary

Previously nanobsd.sh unconditionally sourced legacy.sh at startup.
Instead, source it on demand through the legacy() plan function, and
fall back to it only when NANO_PLAN is unset, with a warning so
existing configs know to set NANO_PLAN explicitly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76170
Build 73053: arc lint + arc unit

Event Timeline

This revision is just a placeholder for D54187?

This revision is just a placeholder for D54187?

yes with just small modification in tools/tools/nanobsd/embedded/common where NANO_PLAN=embedded is defined

This revision is just a placeholder for D54187?

yes with just small modification in tools/tools/nanobsd/embedded/common where NANO_PLAN=embedded is defined

In that case, please explicitly add @imp as a reviewer or suggest changes in D54187.
I have to revisit is_defined() because it's been a while.