Skip to content

Commit 2b2bee3

Browse files
rhubertreet-
authored andcommitted
gprfiles: remove relative with + make generated dir setable
1 parent c7348a9 commit 2b2bee3

File tree

27 files changed

+108
-109
lines changed

27 files changed

+108
-109
lines changed

components/ahci_drv/ahci_drv.gpr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../libmuchannel/libmuchannel";
20-
with "../libmudebuglog/libmudebuglog";
19+
with "libmuchannel";
20+
with "libmudebuglog";
21+
with "common_strings";
2122

2223
project Ahci_Drv extends "../component_spark" is
2324

2425
for Languages use ("Ada", "Asm");
25-
for Source_Dirs use ("generated", "src", "../../common/strings/impl")
26-
& Component_Spark.Src_Dirs;
26+
for Source_Dirs use (external("GENERATED"), "src", "../src");
2727
for Object_Dir use "obj/" & Component_Spark.Build_Mode;
2828
for Main use ("ahci_drv");
2929

components/common.gpr

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../build-cfg/gpr/shared";
19+
with "shared";
20+
with "muen_common";
2021

2122
abstract project Common is
2223

@@ -26,7 +27,7 @@ abstract project Common is
2627
type Proof_Type is ("limited", "complete");
2728
Proof_Mode : Proof_Type := external ("proofs", "limited");
2829

29-
Src_Dirs := ("../../common/src", "../src");
30+
Src_Dirs := ("src");
3031
Extra_Warning_Switches := ();
3132
Extra_Compiler_Switches := ();
3233
Preprocessor_Switches := ();
@@ -59,7 +60,7 @@ abstract project Common is
5960
end case;
6061

6162
package Builder is
62-
for Global_Configuration_Pragmas use "../build-cfg/gpr/restrictions.adc";
63+
for Global_Configuration_Pragmas use external ("BUILD_CFG_PATH") & "/restrictions.adc";
6364
end Builder;
6465

6566
package Compiler is
@@ -69,7 +70,7 @@ abstract project Common is
6970
& Preprocessor_Switches
7071
& Shared.Warning_Switches
7172
& Extra_Warning_Switches;
72-
for Local_Configuration_Pragmas use "../build-cfg/gpr/restrictions-" & Build_Mode & ".adc";
73+
for Local_Configuration_Pragmas use external ("BUILD_CFG_PATH") & "/restrictions-" & Build_Mode & ".adc";
7374
end Compiler;
7475

7576
package Naming is

components/component.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ SECTIONS
6262
*(.comment)
6363
*(.eh_frame)
6464
*(.eh_frame_hdr)
65+
*(.note.gnu.build-id)
6566
*(.note.gnu.property)
6667
*(.dynamic)
6768
*(.dyns*)

components/component_spark.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../build-cfg/gpr/shared";
19+
with "shared";
2020

2121
abstract project Component_Spark extends "common.gpr" is
2222

components/controller/controller.gpr

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../libmudebuglog/libmudebuglog";
20-
with "../libmucontroltypes/libmucontroltypes";
19+
with "common_strings";
20+
with "muinterrupts";
21+
with "libmudebuglog";
22+
with "libmucontroltypes";
2123

2224
project Controller extends "../component_spark" is
2325

24-
Extra_Dirs := Component_Spark.Src_Dirs
25-
& "../../common/muinterrupts"
26-
& "../../common/strings/impl";
27-
2826
for Languages use ("Ada", "Asm");
29-
for Source_Dirs use ("generated", "src") & Extra_Dirs;
27+
for Source_Dirs use (external("GENERATED"), "src", "../src");
3028
for Object_Dir use "obj/" & Component_Spark.Build_Mode;
3129
for Main use ("controller");
3230

components/dbgserver/dbgserver.gpr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
--
1717

18-
with "../libxhcidbg/libxhcidbg";
19-
with "../libmudebuglog/libmudebuglog";
20-
with "../libmusinfo/libmusinfo";
21-
with "generated/dbg_config";
18+
with "libxhcidbg";
19+
with "libmudebuglog";
20+
with "libmusinfo";
21+
with "dbg_config";
22+
with "crash_audit";
23+
with "muen_common";
24+
with "common_debug";
25+
with "common_strings";
2226

2327
project Dbgserver extends "../component_spark" is
2428

2529
Src_Dirs :=
26-
("../../common/debug",
27-
"../../common/src",
28-
"../../common/crash_audit",
29-
"../../common/strings/impl",
30-
"../src",
31-
"generated",
30+
("../src",
31+
external("GENERATED"),
3232
"src",
3333
"src/sinks/pcspkr",
3434
"src/sinks/serial",

components/dbgserver/src/dbg-crash_audit.ads

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
--
1818

1919
package Dbg.Crash_Audit
20+
with SPARK_Mode => Off
2021
is
2122

2223
-- Process crash audit records if present.

components/dm/dm.gpr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../libmudebuglog/libmudebuglog";
20-
with "../libmudm/libmudm";
19+
with "common_strings";
20+
with "libmudebuglog";
21+
with "libmudm";
2122

2223
project Dm extends "../component_spark" is
2324

2425
for Languages use ("Ada", "Asm");
25-
for Source_Dirs use ("generated", "src", "../../common/strings/impl")
26-
& Component_Spark.Src_Dirs;
26+
for Source_Dirs use (external("GENERATED"), "src", "../src");
2727
for Object_Dir use "obj/" & Component_Spark.Build_Mode;
2828
for Main use ("dm");
2929

components/example/example.gpr

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../libmudebuglog/libmudebuglog";
20-
with "../libmusinfo/libmusinfo";
21-
with "../libmucontrol/libmucontrol";
22-
with "generated/example_config";
19+
with "libmudebuglog";
20+
with "libmusinfo";
21+
with "libmucontrol";
22+
with "example_config";
23+
with "common_strings";
24+
with "crash_audit";
25+
with "common_debug";
26+
with "mutimedevents";
2327

2428
project Example extends "../component_spark" is
2529

26-
Src_Dirs := Component_Spark.Src_Dirs
27-
& "src"
28-
& "generated"
29-
& "../../common/strings/impl"
30-
& "../../common/crash_audit"
31-
& "../../common/debug"
32-
& "../../common/mutimedevents";
30+
Src_Dirs := ("src", external("GENERATED"), "../src");
3331
Obj_Suffix := "/";
3432

3533
case example_config.ahci_drv_enabled is

components/isolation_tests/isolation_tests.gpr

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,16 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
--
1818

19-
with "../libmudebuglog/libmudebuglog";
20-
with "../libmusinfo/libmusinfo";
19+
with "libmudebuglog";
20+
with "libmusinfo";
21+
with "common_strings";
2122

2223
project Isolation_Tests extends "../component_spark" is
2324

2425
Extra_Dirs := Component_Spark.Src_Dirs;
25-
Extra_Dirs := Extra_Dirs
26-
& "../../common/strings/impl";
2726

2827
for Languages use ("Ada", "Asm");
29-
for Source_Dirs use ("generated", "src") & Extra_Dirs;
28+
for Source_Dirs use (external("GENERATED"), "src", "../src") & Extra_Dirs;
3029
for Object_Dir use "obj/" & Component_Spark.Build_Mode;
3130
for Main use ("isolation_tests");
3231

0 commit comments

Comments
 (0)