Skip to content

Commit a7f23e2

Browse files
author
Axel Heider
committed
vm_arm: remove deprecated config options
Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
1 parent 64690e8 commit a7f23e2

3 files changed

Lines changed: 10 additions & 106 deletions

File tree

components/VM_Arm/CMakeLists.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,22 +111,6 @@ config_option(
111111
OFF
112112
)
113113

114-
config_option(
115-
VmInitRdFile
116-
VM_INITRD_FILE
117-
"Enables the option for the VM to open and load a seperate initrd file"
118-
DEFAULT
119-
OFF
120-
)
121-
122-
config_option(
123-
VmDtbFile
124-
VM_DTB_FILE
125-
"Enables the option for the VM to open and load a seperate dtb file"
126-
DEFAULT
127-
OFF
128-
)
129-
130114
config_option(
131115
VmVirtUart
132116
VM_VIRT_UART

components/VM_Arm/configurations/vm.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,6 @@
8888
int clean_cache = false; \
8989
int map_one_to_one = false; \
9090
} vm_image_config; \
91-
attribute { \
92-
string linux_ram_base; \
93-
string linux_ram_paddr_base; \
94-
string linux_ram_size; \
95-
string linux_ram_offset = "0"; /* obsolete */ \
96-
string dtb_addr; \
97-
string initrd_max_size = "-1"; /* obsolete */ \
98-
string initrd_addr; \
99-
} linux_address_config; \
100-
attribute { \
101-
string linux_name = "linux"; \
102-
string dtb_name = "linux-dtb"; \
103-
string initrd_name = "linux-initrd"; \
104-
string linux_bootcmdline = ""; \
105-
string linux_stdout = ""; \
106-
string dtb_base_name = ""; \
107-
} linux_image_config; \
10891
attribute { \
10992
int send_id; \
11093
int recv_id; \

templates/seL4VMParameters.template.c

Lines changed: 10 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414
/*- endif -*/
1515

1616
/*- set vm_address_config = config.get('vm_address_config') -*/
17-
/*- set vm_image_config = config.get('vm_image_config') -*/
18-
/*- set linux_address_config = config.get('linux_address_config') -*/
19-
/*- set linux_image_config = config.get('linux_image_config') -*/
17+
/*- if not vm_address_config -*/
18+
/*? raise(Exception('Missing VM address configuration')) ?*/
19+
/*- endif -*/
2020

21-
/*# For legacy compatibility, a fall back to the standard Linux entry exists. #*/
22-
/*- set is_64_bit = (8 == macros.get_word_size(options.architecture)) -*/
23-
/*- set entry_offset = 0x80000 if is_64_bit else 0x8000 -*/
21+
/*- set vm_image_config = config.get('vm_image_config') -*/
22+
/*- if not vm_image_config -*/
23+
/*? raise(Exception('Missing VM image configuration')) ?*/
24+
/*- endif -*/
2425

2526
const vm_config_t vm_config = {
2627

27-
/*- if vm_address_config -*/
28-
2928
.ram = {
3029
.phys_base = /*? vm_address_config.get('ram_paddr_base') ?*/,
3130
.base = /*? vm_address_config.get('ram_base') ?*/,
@@ -38,29 +37,13 @@ const vm_config_t vm_config = {
3837
/*- if vm_address_config.get('kernel_entry_addr') != '-1' -*/
3938
.entry_addr = /*? vm_address_config.get('kernel_entry_addr') ?*/,
4039
/*- else -*/
40+
/*# For legacy compatibility, a fall back to the standard Linux entry exists. #*/
41+
/*- set is_64_bit = (8 == macros.get_word_size(options.architecture)) -*/
42+
/*- set entry_offset = 0x80000 if is_64_bit else 0x8000 -*/
4143
#warning Using standard Linux entry point, please consider setting kernel_entry_addr explicitly.
4244
.entry_addr = /*? vm_address_config.get('ram_base') ?*/ + /*? '0x%x'%entry_offset ?*/,
4345
/*- endif -*/
4446

45-
/*- else -*/
46-
47-
#warning You are using the deprecated linux_address_config structure. Please use the vm_address_config structure instead
48-
49-
.ram = {
50-
.phys_base = /*? linux_address_config.get('linux_ram_paddr_base') ?*/,
51-
.base = /*? linux_address_config.get('linux_ram_base') ?*/,
52-
.size = /*? linux_address_config.get('linux_ram_size') ?*/,
53-
},
54-
55-
.dtb_addr = /*? linux_address_config.get('dtb_addr') ?*/,
56-
.initrd_addr = /*? linux_address_config.get('initrd_addr') ?*/,
57-
/* Use standard Linux entry point. */
58-
.entry_addr = /*? linux_address_config.get('linux_ram_base') ?*/ + /*? '0x%x'%entry_offset ?*/,
59-
60-
/*- endif -*/
61-
62-
/*- if vm_image_config -*/
63-
6447
.provide_initrd = /*? vm_image_config.get('provide_initrd') ?*/,
6548
.generate_dtb = /*? vm_image_config.get('generate_dtb') ?*/,
6649
.provide_dtb = /*? vm_image_config.get('provide_dtb') ?*/,
@@ -77,50 +60,4 @@ const vm_config_t vm_config = {
7760
.kernel_bootcmdline = "/*? vm_image_config.get('kernel_bootcmdline', "") ?*/",
7861
.kernel_stdout = "/*? vm_image_config.get('kernel_stdout', "") ?*/",
7962

80-
/*- else -*/
81-
82-
#warning "You are using the deprecated linux_image_config structure. The provide_initrd, generate_dtb, provide_dtb, \
83-
map_one_to_one, and clean_cache flags are set to replicate previous behavior, which may cause your configuration to break. \
84-
Please use the vm_image_config structure instead."
85-
86-
#ifdef CONFIG_VM_INITRD_FILE
87-
#warning VmInitRdFile is a deprecated setting. Please remove and use vm_image_config.provide_initrd
88-
.provide_initrd = 1,
89-
#else
90-
.provide_initrd = 0,
91-
#endif
92-
93-
#ifdef CONFIG_VM_DTB_FILE
94-
#warning VmDtbFile is a deprecated setting. Please remove and use vm_image_config.provide_dtb
95-
.provide_dtb = 1,
96-
.generate_dtb = 0,
97-
#else
98-
.provide_dtb = 0,
99-
.generate_dtb = 1,
100-
#endif
101-
102-
#if defined(CONFIG_PLAT_EXYNOS5) || defined(CONFIG_PLAT_QEMU_ARM_VIRT) || defined(CONFIG_PLAT_TX2)
103-
.map_one_to_one = 1,
104-
#else
105-
.map_one_to_one = 0,
106-
#endif
107-
108-
#if defined(CONFIG_PLAT_TX1) || defined(CONFIG_PLAT_TX2)
109-
.clean_cache = 1,
110-
#else
111-
.clean_cache = 0,
112-
#endif
113-
114-
.files = {
115-
.kernel = "/*? linux_image_config.get('linux_name') ?*/",
116-
.initrd = "/*? linux_image_config.get('initrd_name') ?*/",
117-
.dtb = "/*? linux_image_config.get('dtb_name') ?*/",
118-
.dtb_base = "/*? linux_image_config.get('dtb_base_name') ?*/",
119-
},
120-
121-
.kernel_bootcmdline = "/*? linux_image_config.get('linux_bootcmdline') ?*/",
122-
.kernel_stdout = "/*? linux_image_config.get('linux_stdout') ?*/",
123-
124-
/*- endif -*/
125-
12663
};

0 commit comments

Comments
 (0)