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
F171255234: D59166.id185007.diff
Wed, Sep 9, 9:33 PM
F171212807: D59166.id185111.diff
Wed, Sep 9, 1:55 PM
F171204013: D59166.id185271.diff
Wed, Sep 9, 12:16 PM
F171202858: D59166.id185391.diff
Wed, Sep 9, 12:02 PM
F171152948: D59166.id184948.diff
Wed, Sep 9, 1:25 AM
F171152913: D59166.id185271.diff
Wed, Sep 9, 1:25 AM
Unknown Object (File)
Tue, Sep 8, 3:49 PM
Unknown Object (File)
Tue, Sep 8, 10:06 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 76306
Build 73189: 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.