mirror of
https://github.com/drasko/codezero.git
synced 2026-10-25 19:27:28 +01:00
Minor simplifications
This commit is contained in:
+4
-4
@@ -41,9 +41,7 @@ def cml2_update_config_h(configuration):
|
|||||||
config_h.write("#define __PLATFORM__ " + configuration['PLATFORM'] + '\n')
|
config_h.write("#define __PLATFORM__ " + configuration['PLATFORM'] + '\n')
|
||||||
config_h.write("#define __SUBARCH__ " + configuration['SUBARCH'] + '\n')
|
config_h.write("#define __SUBARCH__ " + configuration['SUBARCH'] + '\n')
|
||||||
|
|
||||||
def cml2_parse_configuration(configuration):
|
def cml2_parse_configuration(configuration, config_data):
|
||||||
config_data = cml2_process(CML2_CONFIG_PROPERTIES)
|
|
||||||
|
|
||||||
for key, value in config_data.items():
|
for key, value in config_data.items():
|
||||||
if value:
|
if value:
|
||||||
items = key.split('_')
|
items = key.split('_')
|
||||||
@@ -77,7 +75,9 @@ def configure_kernel(cml_file):
|
|||||||
|
|
||||||
cml2_configure(cml_file)
|
cml2_configure(cml_file)
|
||||||
|
|
||||||
cml2_parse_configuration(configuration)
|
config_data = cml2_process(CML2_CONFIG_PROPERTIES)
|
||||||
|
|
||||||
|
cml2_parse_configuration(configuration, config_data)
|
||||||
|
|
||||||
cml2_update_config_h(configuration)
|
cml2_update_config_h(configuration)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user