From e5ca7841c94d9e31f6ab28c19eb24017c06d3d5e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 Nov 2020 11:07:15 +0200 Subject: Add kconfig standard pre-installed build system module --- .gitmodules | 3 +++ build/bootstrap.build | 2 ++ buildfile | 15 ++++++++------- libbuild2-kconfig | 1 + submodules/libbuild2-kconfig | 1 + tests/README | 2 ++ tests/libbuild2-kconfig-tests | 1 + 7 files changed, 18 insertions(+), 7 deletions(-) create mode 120000 libbuild2-kconfig create mode 160000 submodules/libbuild2-kconfig create mode 100644 tests/README create mode 120000 tests/libbuild2-kconfig-tests diff --git a/.gitmodules b/.gitmodules index fc587b0..8c319ab 100644 --- a/.gitmodules +++ b/.gitmodules @@ -32,3 +32,6 @@ path = submodules/pkgconf url = https://git.build2.org/packaging/pkgconf/pkgconf.git update = none +[submodule "submodules/libbuild2-kconfig"] + path = submodules/libbuild2-kconfig + url = https://github.com/build2/libbuild2-kconfig.git diff --git a/build/bootstrap.build b/build/bootstrap.build index 2317224..7d4dccc 100644 --- a/build/bootstrap.build +++ b/build/bootstrap.build @@ -3,6 +3,8 @@ project = build2-toolchain amalgamation = # Disable amalgamation. +subprojects = {*/ -build/ -doc/ -tests/ -submodules/} +subprojects += tests/*/ using version using config diff --git a/buildfile b/buildfile index 402202f..d5df087 100644 --- a/buildfile +++ b/buildfile @@ -9,9 +9,6 @@ build2_repo="https://stage.build2.org/1" # build2_repo="https://pkg.cppget.org/1/queue/alpha" # build2_repo="https://pkg.cppget.org/1/alpha" -d = libpkgconf/ libbutl/ build2/ \ -libsqlite3/ libodb/ libodb-sqlite/ libbpkg/ bpkg/ bdep/ doc/ - i = \ INSTALL \ UPGRADE \ @@ -22,12 +19,16 @@ BOOTSTRAP-WINDOWS-MSVC \ BOOTSTRAP-WINDOWS-CLANG \ BOOTSTRAP-WINDOWS-MINGW -./: $d \ - doc{$i README} \ - legal{LICENSE AUTHORS} \ - cli{$i} \ +# Note: see also subprojects in bootstrap.build. +# +./: {*/ -build/ -tests/ -submodules/} \ + doc{$i README} \ + legal{LICENSE AUTHORS} \ + cli{$i} \ manifest +./: tests/*/ tests/doc{README} + # Obtain the build2, bpkg, bdep, and toolchain versions. # bp = $recall($build.path) diff --git a/libbuild2-kconfig b/libbuild2-kconfig new file mode 120000 index 0000000..b65cb37 --- /dev/null +++ b/libbuild2-kconfig @@ -0,0 +1 @@ +submodules/libbuild2-kconfig/libbuild2-kconfig \ No newline at end of file diff --git a/submodules/libbuild2-kconfig b/submodules/libbuild2-kconfig new file mode 160000 index 0000000..7d048c3 --- /dev/null +++ b/submodules/libbuild2-kconfig @@ -0,0 +1 @@ +Subproject commit 7d048c3581252baecaa85e21c98458338669a6c0 diff --git a/tests/README b/tests/README new file mode 100644 index 0000000..6084038 --- /dev/null +++ b/tests/README @@ -0,0 +1,2 @@ +This subdirectory contains external tests for projects (such as build system +modules) found in the root directory. diff --git a/tests/libbuild2-kconfig-tests b/tests/libbuild2-kconfig-tests new file mode 120000 index 0000000..2b2f3a7 --- /dev/null +++ b/tests/libbuild2-kconfig-tests @@ -0,0 +1 @@ +../submodules/libbuild2-kconfig/libbuild2-kconfig-tests \ No newline at end of file -- cgit v1.1