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
F171050459: D59166.id185007.diff
Tue, Sep 8, 10:06 AM
F170983255: D59166.id184948.diff
Tue, Sep 8, 12:26 AM
F170977034: D59166.id184948.diff
Mon, Sep 7, 11:35 PM
F170970162: D59166.diff
Mon, Sep 7, 10:34 PM
F170942722: D59166.id185271.diff
Mon, Sep 7, 6:36 PM
F170933381: D59166.id185007.diff
Mon, Sep 7, 5:05 PM
F170927060: D59166.id.diff
Mon, Sep 7, 4:05 PM
Unknown Object (File)
Mon, Sep 7, 7:44 AM
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 76130
Build 73013: 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.