integration/export: do not include soc.h in csr.h when with_access_functions=False
Idealy we should have another parameter for that.
This commit is contained in:
parent
b52dcde9ba
commit
f1714405c3
|
@ -180,7 +180,8 @@ def _get_rw_functions_c(reg_name, reg_base, nwords, busword, alignment, read_onl
|
||||||
def get_csr_header(regions, constants, with_access_functions=True):
|
def get_csr_header(regions, constants, with_access_functions=True):
|
||||||
alignment = constants.get("CONFIG_CSR_ALIGNMENT", 32)
|
alignment = constants.get("CONFIG_CSR_ALIGNMENT", 32)
|
||||||
r = generated_banner("//")
|
r = generated_banner("//")
|
||||||
r += "#include <generated/soc.h>\n"
|
if with_access_functions: # FIXME
|
||||||
|
r += "#include <generated/soc.h>\n"
|
||||||
r += "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n"
|
r += "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n"
|
||||||
if with_access_functions:
|
if with_access_functions:
|
||||||
r += "#include <stdint.h>\n"
|
r += "#include <stdint.h>\n"
|
||||||
|
|
Loading…
Reference in New Issue