scripts: Convert gen_offset_header to Python
By having this as a Python script rather than a host executable, this should simplify the build process on non-Unix platforms. With this change, pyelftools is now required to build Zephyr. Please consult the getting started documentation for your host platform for installation instructions. Jira: ZEP-2062 Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
parent
bc2454fa9e
commit
f5a8d498ea
8 changed files with 74 additions and 1057 deletions
8
Makefile
8
Makefile
|
@ -320,10 +320,8 @@ GDB = $(CROSS_COMPILE)gdb
|
|||
READELF = $(CROSS_COMPILE)readelf
|
||||
AWK = awk
|
||||
ifeq ($(PREBUILT_HOST_TOOLS),)
|
||||
GENOFFSET_H = scripts/gen_offset_header/gen_offset_header
|
||||
FIXDEP = scripts/basic/fixdep
|
||||
else
|
||||
GENOFFSET_H = $(PREBUILT_HOST_TOOLS)/gen_offset_header
|
||||
ifneq ($(filter host-tools, $(MAKECMDGOALS)),)
|
||||
FIXDEP = scripts/basic/fixdep
|
||||
else
|
||||
|
@ -416,7 +414,7 @@ exports += VERSION_MAJOR VERSION_MINOR PATCHLEVEL VERSION_RESERVED EXTRAVERSION
|
|||
exports += KERNELRELEASE KERNELVERSION
|
||||
exports += ARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC CXX
|
||||
exports += CPP AR NM STRIP OBJCOPY OBJDUMP GDB
|
||||
exports += MAKE AWK INSTALLKERNEL PERL PYTHON GENOFFSET_H
|
||||
exports += MAKE AWK INSTALLKERNEL PERL PYTHON
|
||||
exports += HOSTCXX HOSTCXXFLAGS CHECK CHECKFLAGS
|
||||
|
||||
exports += KBUILD_CPPFLAGS NOSTDINC_FLAGS ZEPHYRINCLUDE OBJCOPYFLAGS LDFLAGS
|
||||
|
@ -456,7 +454,6 @@ PHONY += scripts_basic
|
|||
ifeq ($(PREBUILT_HOST_TOOLS),)
|
||||
scripts_basic:
|
||||
$(Q)$(MAKE) $(build)=scripts/basic
|
||||
$(Q)$(MAKE) $(build)=scripts/gen_offset_header
|
||||
else
|
||||
scripts_basic:
|
||||
endif
|
||||
|
@ -1278,10 +1275,9 @@ host-tools:
|
|||
$(Q)$(MAKE) $(build)=scripts/basic
|
||||
$(Q)$(MAKE) $(build)=scripts/kconfig standalone
|
||||
$(Q)$(MAKE) $(build)=scripts/gen_idt
|
||||
$(Q)$(MAKE) $(build)=scripts/gen_offset_header
|
||||
@mkdir -p ${ZEPHYR_BASE}/bin
|
||||
@cp scripts/basic/fixdep scripts/gen_idt/gen_idt scripts/kconfig/conf \
|
||||
scripts/gen_offset_header/gen_offset_header ${ZEPHYR_BASE}/bin
|
||||
${ZEPHYR_BASE}/bin
|
||||
|
||||
|
||||
# Documentation targets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue