internal/rosa/package: db

For iproute2.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-25 10:31:45 +09:00
parent 7eebf49b98
commit 8ca70550ab
4 changed files with 44 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ type MakeHelper struct {
SkipConfigure bool
// Alternative name for the configure script.
ConfigureName string
// Add autoconf arguments regardless of ConfigureName.
ForceAutoconf bool
// Flags passed to the configure script.
Configure []KV
// Host target triple, zero value is equivalent to the Rosa OS triple.
@@ -100,9 +102,11 @@ func (attr *MakeHelper) script(t Toolchain, name string) string {
if !attr.SkipConfigure {
configure = attr.ConfigureName
if configure == "" {
configure += `/usr/src/` + name + `/configure \
configure += `/usr/src/` + name + `/configure`
}
if attr.ForceAutoconf || attr.ConfigureName == "" {
configure += ` \
--prefix=/system`
host := `"${ROSA_TRIPLE}"`
if attr.Host != "" {
host = attr.Host