Rename tinymountain -> zephyr
Remove excessive use of zephyr and use a more generic terminology where possible. Change-Id: Ida8916765dbe824f63d7a4cedba60b35d14aee55 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
b8823770d2
commit
652309470c
2 changed files with 59 additions and 65 deletions
80
Makefile
80
Makefile
|
@ -35,9 +35,9 @@ unexport GREP_OPTIONS
|
||||||
# their own directory. If in some directory we have a dependency on
|
# their own directory. If in some directory we have a dependency on
|
||||||
# a file in another dir (which doesn't happen often, but it's often
|
# a file in another dir (which doesn't happen often, but it's often
|
||||||
# unavoidable when linking the built-in.o targets which finally
|
# unavoidable when linking the built-in.o targets which finally
|
||||||
# turn into tinymountain), we will call a sub make in that other dir, and
|
# turn into the kernel binary), we will call a sub make in that other
|
||||||
# after that we are sure that everything which is in that other dir
|
# dir, and after that we are sure that everything which is in that
|
||||||
# is now up to date.
|
# other dir is now up to date.
|
||||||
#
|
#
|
||||||
# The only cases where we need to modify files which have global
|
# The only cases where we need to modify files which have global
|
||||||
# effects are thus separated out and done before the recursive
|
# effects are thus separated out and done before the recursive
|
||||||
|
@ -520,7 +520,7 @@ config: scripts_basic outputmakefile FORCE
|
||||||
|
|
||||||
else
|
else
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
# Build targets only - this includes tinymountain, arch specific targets, clean
|
# Build targets only - this includes zephyr, arch specific targets, clean
|
||||||
# targets and others. In general all targets except *config targets.
|
# targets and others. In general all targets except *config targets.
|
||||||
|
|
||||||
# Additional helpers built in scripts/
|
# Additional helpers built in scripts/
|
||||||
|
@ -563,7 +563,7 @@ include/config/auto.conf: ;
|
||||||
endif # $(dot-config)
|
endif # $(dot-config)
|
||||||
|
|
||||||
ifdef CONFIG_MINIMAL_LIBC
|
ifdef CONFIG_MINIMAL_LIBC
|
||||||
# Objects we will link into tinymountain / subdirs we need to visit
|
# Objects we will link into the kernel / subdirs we need to visit
|
||||||
KLIBC_DIR := lib/libc/minimal
|
KLIBC_DIR := lib/libc/minimal
|
||||||
libs-y := $(KLIBC_DIR)/
|
libs-y := $(KLIBC_DIR)/
|
||||||
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
||||||
|
@ -587,8 +587,8 @@ QEMU = $(QEMU_BIN_PATH)/$(QEMU_$(SRCARCH))
|
||||||
# The all: target is the default when no target is given on the
|
# The all: target is the default when no target is given on the
|
||||||
# command line.
|
# command line.
|
||||||
# This allow a user to issue only 'make' to build a kernel including modules
|
# This allow a user to issue only 'make' to build a kernel including modules
|
||||||
# Defaults to tinymountain, but the arch makefile usually adds further targets
|
# Defaults to zephyr, but the arch makefile usually adds further targets
|
||||||
all: tinymountain
|
all: zephyr
|
||||||
|
|
||||||
ifdef CONFIG_READABLE_ASM
|
ifdef CONFIG_READABLE_ASM
|
||||||
# Disable optimizations that make assembler listings hard to read.
|
# Disable optimizations that make assembler listings hard to read.
|
||||||
|
@ -720,14 +720,14 @@ KBUILD_CFLAGS += $(KCFLAGS)
|
||||||
|
|
||||||
# Use --build-id when available.
|
# Use --build-id when available.
|
||||||
|
|
||||||
LDFLAGS_tinymountain += $(call ld-option,-nostartfiles)
|
LDFLAGS_zephyr += $(call ld-option,-nostartfiles)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,-nodefaultlibs)
|
LDFLAGS_zephyr += $(call ld-option,-nodefaultlibs)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,-nostdlib)
|
LDFLAGS_zephyr += $(call ld-option,-nostdlib)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,-static)
|
LDFLAGS_zephyr += $(call ld-option,-static)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,-X)
|
LDFLAGS_zephyr += $(call ld-option,-X)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,-N)
|
LDFLAGS_zephyr += $(call ld-option,-N)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,--gc-sections)
|
LDFLAGS_zephyr += $(call ld-option,--gc-sections)
|
||||||
LDFLAGS_tinymountain += $(call ld-option,--build-id=none)
|
LDFLAGS_zephyr += $(call ld-option,--build-id=none)
|
||||||
|
|
||||||
LD_TOOLCHAIN ?= -D__GCC_LINKER_CMD__
|
LD_TOOLCHAIN ?= -D__GCC_LINKER_CMD__
|
||||||
|
|
||||||
|
@ -744,7 +744,7 @@ export LD_TOOLCHAIN KERNEL_NAME
|
||||||
# set in the environment
|
# set in the environment
|
||||||
# Also any assignments in arch/$(ARCH)/Makefile take precedence over
|
# Also any assignments in arch/$(ARCH)/Makefile take precedence over
|
||||||
# this default value
|
# this default value
|
||||||
export KBUILD_IMAGE ?= tinymountain
|
export KBUILD_IMAGE ?= zephyr
|
||||||
|
|
||||||
#
|
#
|
||||||
# INSTALL_PATH specifies where to place the updated kernel and system map
|
# INSTALL_PATH specifies where to place the updated kernel and system map
|
||||||
|
@ -760,11 +760,11 @@ export INSTALL_DTBS_PATH ?= $(INSTALL_PATH)/dtbs/$(KERNELRELEASE)
|
||||||
|
|
||||||
core-y +=
|
core-y +=
|
||||||
|
|
||||||
tinymountain-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
|
zephyr-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
|
||||||
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
|
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
|
||||||
$(bsp-y) $(bsp-m) $(libs-y) $(libs-m)))
|
$(bsp-y) $(bsp-m) $(libs-y) $(libs-m)))
|
||||||
|
|
||||||
tinymountain-alldirs := $(sort $(tinymountain-dirs) $(patsubst %/,%,$(filter %/, \
|
zephyr-alldirs := $(sort $(zephyr-dirs) $(patsubst %/,%,$(filter %/, \
|
||||||
$(init-) $(core-) $(drivers-) $(bsp-) $(libs-))))
|
$(init-) $(core-) $(drivers-) $(bsp-) $(libs-))))
|
||||||
|
|
||||||
init-y := $(patsubst %/, %/built-in.o, $(init-y))
|
init-y := $(patsubst %/, %/built-in.o, $(init-y))
|
||||||
|
@ -775,29 +775,29 @@ libs-y1 := $(patsubst %/, %/lib.a, $(libs-y))
|
||||||
libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y))
|
libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y))
|
||||||
libs-y := $(libs-y1) $(libs-y2)
|
libs-y := $(libs-y1) $(libs-y2)
|
||||||
|
|
||||||
# Externally visible symbols (used by link-tinymountain.sh)
|
# Externally visible symbols (used by link-zephyr.sh)
|
||||||
DQUOTE = "
|
DQUOTE = "
|
||||||
#This comment line is to fix the highlighting of some editors due the quote effect."
|
#This comment line is to fix the highlighting of some editors due the quote effect."
|
||||||
export KBUILD_ZEPHYR_INIT := $(head-y) $(init-y)
|
export KBUILD_ZEPHYR_INIT := $(head-y) $(init-y)
|
||||||
export KBUILD_ZEPHYR_MAIN := $(core-y) $(libs-y) $(drivers-y) $(bsp-y)
|
export KBUILD_ZEPHYR_MAIN := $(core-y) $(libs-y) $(drivers-y) $(bsp-y)
|
||||||
export KBUILD_LDS := $(srctree)/arch/$(SRCARCH)/$(subst $(DQUOTE),,$(CONFIG_BSP_DIR))/linker.cmd
|
export KBUILD_LDS := $(srctree)/arch/$(SRCARCH)/$(subst $(DQUOTE),,$(CONFIG_BSP_DIR))/linker.cmd
|
||||||
export LDFLAGS_tinymountain
|
export LDFLAGS_zephyr
|
||||||
# used by scripts/pacmage/Makefile
|
# used by scripts/pacmage/Makefile
|
||||||
export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(tinymountain-alldirs)) arch Documentation include samples scripts tools virt)
|
export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(zephyr-alldirs)) arch Documentation include samples scripts tools virt)
|
||||||
|
|
||||||
tinymountain-deps := $(KBUILD_LDS) $(KBUILD_ZEPHYR_INIT) $(KBUILD_ZEPHYR_MAIN)
|
zephyr-deps := $(KBUILD_LDS) $(KBUILD_ZEPHYR_INIT) $(KBUILD_ZEPHYR_MAIN)
|
||||||
|
|
||||||
ALL_LIBS += $(TOOLCHAIN_LIBS)
|
ALL_LIBS += $(TOOLCHAIN_LIBS)
|
||||||
export ALL_LIBS
|
export ALL_LIBS
|
||||||
|
|
||||||
# Final link of tinymountain
|
# Final link of zephyr
|
||||||
cmd_link-tinymountain = $(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_tinymountain) $(LIB_INCLUDE_DIR) $(ALL_LIBS)
|
cmd_link-zephyr = $(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_zephyr) $(LIB_INCLUDE_DIR) $(ALL_LIBS)
|
||||||
quiet_cmd_link-tinymountain = LINK $@
|
quiet_cmd_link-zephyr = LINK $@
|
||||||
|
|
||||||
# Include targets which we want to
|
# Include targets which we want to
|
||||||
# execute if the rest of the kernel build went well.
|
# execute if the rest of the kernel build went well.
|
||||||
tinymountain: scripts/link-tinymountain.sh $(tinymountain-deps) FORCE
|
zephyr: scripts/link-zephyr.sh $(zephyr-deps) FORCE
|
||||||
@touch tinymountain
|
@touch zephyr
|
||||||
ifdef CONFIG_HEADERS_CHECK
|
ifdef CONFIG_HEADERS_CHECK
|
||||||
$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
|
$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
|
||||||
endif
|
endif
|
||||||
|
@ -809,21 +809,21 @@ ifdef CONFIG_BUILD_DOCSRC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(strip $(PROJECT)),)
|
ifneq ($(strip $(PROJECT)),)
|
||||||
+$(call if_changed,link-tinymountain)
|
+$(call if_changed,link-zephyr)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The actual objects are generated when descending,
|
# The actual objects are generated when descending,
|
||||||
# make sure no implicit rule kicks in
|
# make sure no implicit rule kicks in
|
||||||
$(sort $(tinymountain-deps)): $(tinymountain-dirs) ;
|
$(sort $(zephyr-deps)): $(zephyr-dirs) ;
|
||||||
|
|
||||||
# Handle descending into subdirectories listed in $(tinymountain-dirs)
|
# Handle descending into subdirectories listed in $(zephyr-dirs)
|
||||||
# Preset locale variables to speed up the build process. Limit locale
|
# Preset locale variables to speed up the build process. Limit locale
|
||||||
# tweaks to this spot to avoid wrong language settings when running
|
# tweaks to this spot to avoid wrong language settings when running
|
||||||
# make menuconfig etc.
|
# make menuconfig etc.
|
||||||
# Error messages still appears in the original language
|
# Error messages still appears in the original language
|
||||||
|
|
||||||
PHONY += $(tinymountain-dirs)
|
PHONY += $(zephyr-dirs)
|
||||||
$(tinymountain-dirs): prepare scripts
|
$(zephyr-dirs): prepare scripts
|
||||||
$(Q)$(MAKE) $(build)=$@
|
$(Q)$(MAKE) $(build)=$@
|
||||||
|
|
||||||
# Things we need to do before we recursively start building the kernel
|
# Things we need to do before we recursively start building the kernel
|
||||||
|
@ -995,16 +995,16 @@ MRPROPER_FILES += .config .config.old .version $(version_h) \
|
||||||
#
|
#
|
||||||
clean: rm-dirs := $(CLEAN_DIRS)
|
clean: rm-dirs := $(CLEAN_DIRS)
|
||||||
clean: rm-files := $(CLEAN_FILES)
|
clean: rm-files := $(CLEAN_FILES)
|
||||||
clean-dirs := $(addprefix _clean_, . $(tinymountain-alldirs) )
|
clean-dirs := $(addprefix _clean_, . $(zephyr-alldirs) )
|
||||||
|
|
||||||
PHONY += $(clean-dirs) clean archclean tinymountainclean
|
PHONY += $(clean-dirs) clean archclean zephyrclean
|
||||||
$(clean-dirs):
|
$(clean-dirs):
|
||||||
$(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
|
$(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
|
||||||
|
|
||||||
tinymountainclean:
|
zephyrclean:
|
||||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-tinymountain.sh clean
|
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-zephyr.sh clean
|
||||||
|
|
||||||
clean: archclean tinymountainclean
|
clean: archclean zephyrclean
|
||||||
|
|
||||||
# mrproper - Delete all generated files, including .config
|
# mrproper - Delete all generated files, including .config
|
||||||
#
|
#
|
||||||
|
@ -1050,7 +1050,7 @@ help:
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo 'Other generic targets:'
|
@echo 'Other generic targets:'
|
||||||
@echo ' all - Build all targets marked with [*]'
|
@echo ' all - Build all targets marked with [*]'
|
||||||
@echo '* tinymountain - Build the bare kernel'
|
@echo '* zephyr - Build the bare kernel'
|
||||||
@echo ' qemu - Build the bare kernel and runs the emulation with qemu'
|
@echo ' qemu - Build the bare kernel and runs the emulation with qemu'
|
||||||
@echo 'Architecture specific targets ($(SRCARCH)):'
|
@echo 'Architecture specific targets ($(SRCARCH)):'
|
||||||
@$(if $(archhelp),$(archhelp),\
|
@$(if $(archhelp),$(archhelp),\
|
||||||
|
@ -1165,7 +1165,7 @@ else
|
||||||
CHECKSTACK_ARCH := $(ARCH)
|
CHECKSTACK_ARCH := $(ARCH)
|
||||||
endif
|
endif
|
||||||
checkstack:
|
checkstack:
|
||||||
$(OBJDUMP) -d tinymountain $$(find . -name '*.ko') | \
|
$(OBJDUMP) -d zephyr $$(find . -name '*.ko') | \
|
||||||
$(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
|
$(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
|
||||||
|
|
||||||
kernelversion:
|
kernelversion:
|
||||||
|
@ -1185,7 +1185,7 @@ tools/%: FORCE
|
||||||
|
|
||||||
QEMU_FLAGS = $(QEMU_FLAGS_$(SRCARCH)) -pidfile qemu.pid
|
QEMU_FLAGS = $(QEMU_FLAGS_$(SRCARCH)) -pidfile qemu.pid
|
||||||
|
|
||||||
qemu: tinymountain
|
qemu: zephyr
|
||||||
@echo "To exit from QEMU enter: 'CTRL+a, x'"
|
@echo "To exit from QEMU enter: 'CTRL+a, x'"
|
||||||
@echo '[QEMU] CPU: $(QEMU_CPU_TYPE_$(SRCARCH))'
|
@echo '[QEMU] CPU: $(QEMU_CPU_TYPE_$(SRCARCH))'
|
||||||
$(Q)$(QEMU) $(QEMU_FLAGS) $(QEMU_EXTRA_FLAGS) -kernel $(KERNEL_NAME).elf
|
$(Q)$(QEMU) $(QEMU_FLAGS) $(QEMU_EXTRA_FLAGS) -kernel $(KERNEL_NAME).elf
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# link tinymountain
|
# link the kernel
|
||||||
#
|
#
|
||||||
# zephyr is linked from the objects selected by $(KBUILD_ZEPHYR_INIT) and
|
# The kernel is linked from the objects selected by $(KBUILD_ZEPHYR_INIT) and
|
||||||
# $(KBUILD_ZEPHYR_MAIN). Most are built-in.o files from top-level directories
|
# $(KBUILD_ZEPHYR_MAIN). Most are built-in.o files from top-level directories
|
||||||
# in the kernel tree, others are specified in arch/$(ARCH)/Makefile.
|
# in the kernel tree, others are specified in arch/$(ARCH)/Makefile.
|
||||||
# Ordering when linking is important, and $(KBUILD_ZEPHYR_INIT) must be first.
|
# Ordering when linking is important, and $(KBUILD_ZEPHYR_INIT) must be first.
|
||||||
#
|
#
|
||||||
# tinymountain
|
# microkernel/nanokernel
|
||||||
# ^
|
# ^
|
||||||
# |
|
# |
|
||||||
# +-< $(KBUILD_ZEPHYR_INIT)
|
# +-< $(KBUILD_ZEPHYR_INIT)
|
||||||
|
@ -18,12 +18,6 @@
|
||||||
# |
|
# |
|
||||||
# +-< ${kallsymso} (see description in KALLSYMS section)
|
# +-< ${kallsymso} (see description in KALLSYMS section)
|
||||||
#
|
#
|
||||||
# tinymountain version (uname -v) cannot be updated during normal
|
|
||||||
# descending-into-subdirs phase since we do not yet know if we need to
|
|
||||||
# update tinymountain.
|
|
||||||
# Therefore this step is delayed until just before final link of tinymountain.
|
|
||||||
#
|
|
||||||
# System.map is generated to document addresses of all kernel symbols
|
|
||||||
|
|
||||||
# Error out on error
|
# Error out on error
|
||||||
set -e
|
set -e
|
||||||
|
@ -44,7 +38,7 @@ linker_params()
|
||||||
{
|
{
|
||||||
LIBS=""
|
LIBS=""
|
||||||
for tcl in ${ALL_LIBS}; do LIBS="${LIBS} -l${tcl}"; done
|
for tcl in ${ALL_LIBS}; do LIBS="${LIBS} -l${tcl}"; done
|
||||||
echo "${LDFLAGS_tinymountain}" > ${1}
|
echo "${LDFLAGS_zephyr}" > ${1}
|
||||||
echo "-Map ./${2}" >> ${1}
|
echo "-Map ./${2}" >> ${1}
|
||||||
echo "-L ${objtree}/include/generated" >> ${1}
|
echo "-L ${objtree}/include/generated" >> ${1}
|
||||||
echo "-u _OffsetAbsSyms -u _ConfigAbsSyms" >> ${1}
|
echo "-u _OffsetAbsSyms -u _ConfigAbsSyms" >> ${1}
|
||||||
|
@ -89,12 +83,12 @@ gen_idt()
|
||||||
rm -f isrList.bin
|
rm -f isrList.bin
|
||||||
}
|
}
|
||||||
|
|
||||||
# Link of tinymountain
|
# Linking the kernel
|
||||||
# ${1} - linker params file (${KERNEL_NAME}.lnk)
|
# ${1} - linker params file (${KERNEL_NAME}.lnk)
|
||||||
# ${2} - linker command file (final-linker.cmd)
|
# ${2} - linker command file (final-linker.cmd)
|
||||||
# ${3} - input file (staticIdt.o)
|
# ${3} - input file (staticIdt.o)
|
||||||
# ${4} - output file
|
# ${4} - output file
|
||||||
tinymountain_link()
|
zephyr_link()
|
||||||
{
|
{
|
||||||
${LD} -T ${2} @${1} ${3} -o ${4}
|
${LD} -T ${2} @${1} ${3} -o ${4}
|
||||||
${OBJCOPY} --set-section-flags intList=noload ${4} elf.tmp
|
${OBJCOPY} --set-section-flags intList=noload ${4} elf.tmp
|
||||||
|
@ -102,7 +96,7 @@ tinymountain_link()
|
||||||
rm elf.tmp
|
rm elf.tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
tinymountain_bin_strip()
|
zephyr_bin_strip()
|
||||||
{
|
{
|
||||||
${OBJDUMP} -S ${1} >${2}
|
${OBJDUMP} -S ${1} >${2}
|
||||||
${OBJCOPY} -S -O binary -R .note -R .comment -R COMMON -R .eh_frame ${1} ${3}
|
${OBJCOPY} -S -O binary -R .note -R .comment -R COMMON -R .eh_frame ${1} ${3}
|
||||||
|
@ -214,11 +208,11 @@ else
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
kallsymso=""
|
kallsymso=""
|
||||||
kallsyms_tinymountain=""
|
kallsyms_zephyr=""
|
||||||
if [ -n "${CONFIG_KALLSYMS}" ]; then
|
if [ -n "${CONFIG_KALLSYMS}" ]; then
|
||||||
|
|
||||||
# kallsyms support
|
# kallsyms support
|
||||||
# Generate section listing all symbols and add it into tinymountain
|
# Generate section listing all symbols and add it into the kernel
|
||||||
# It's a three step process:
|
# It's a three step process:
|
||||||
# 1) Link .tmp_${KERNEL_NAME} so it has all symbols and sections,
|
# 1) Link .tmp_${KERNEL_NAME} so it has all symbols and sections,
|
||||||
# but __kallsyms is empty.
|
# but __kallsyms is empty.
|
||||||
|
@ -231,28 +225,28 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
|
||||||
# 2a) We may use an extra pass as this has been necessary to
|
# 2a) We may use an extra pass as this has been necessary to
|
||||||
# woraround some alignment related bugs.
|
# woraround some alignment related bugs.
|
||||||
# KALLSYMS_EXTRA_PASS=1 is used to trigger this.
|
# KALLSYMS_EXTRA_PASS=1 is used to trigger this.
|
||||||
# 3) The correct ${kallsymso} is linked into the final tinymountain.
|
# 3) The correct ${kallsymso} is linked into the final kernel.
|
||||||
#
|
#
|
||||||
# a) Verify that the System.map from tinymountain matches the map from
|
# a) Verify that the System.map matches the map from
|
||||||
# ${kallsymso}.
|
# ${kallsymso}.
|
||||||
|
|
||||||
kallsymso=.tmp_kallsyms2.o
|
kallsymso=.tmp_kallsyms2.o
|
||||||
kallsyms_tinymountain=.tmp_${KERNEL_NAME}2
|
kallsyms_zephyr=.tmp_${KERNEL_NAME}2
|
||||||
|
|
||||||
# step 1
|
# step 1
|
||||||
tinymountain_link "" .tmp_${KERNEL_NAME}1
|
zephyr_link "" .tmp_${KERNEL_NAME}1
|
||||||
kallsyms .tmp_${KERNEL_NAME}1 .tmp_kallsyms1.o
|
kallsyms .tmp_${KERNEL_NAME}1 .tmp_kallsyms1.o
|
||||||
|
|
||||||
# step 2
|
# step 2
|
||||||
tinymountain_link .tmp_kallsyms1.o .tmp_${KERNEL_NAME}2
|
zephyr_link .tmp_kallsyms1.o .tmp_${KERNEL_NAME}2
|
||||||
kallsyms .tmp_${KERNEL_NAME}2 .tmp_kallsyms2.o
|
kallsyms .tmp_${KERNEL_NAME}2 .tmp_kallsyms2.o
|
||||||
|
|
||||||
# step 2a
|
# step 2a
|
||||||
if [ -n "${KALLSYMS_EXTRA_PASS}" ]; then
|
if [ -n "${KALLSYMS_EXTRA_PASS}" ]; then
|
||||||
kallsymso=.tmp_kallsyms3.o
|
kallsymso=.tmp_kallsyms3.o
|
||||||
kallsyms_tinymountain=.tmp_${KERNEL_NAME}3
|
kallsyms_zephyr=.tmp_${KERNEL_NAME}3
|
||||||
|
|
||||||
tinymountain_link .tmp_kallsyms2.o .tmp_${KERNEL_NAME}3
|
zephyr_link .tmp_kallsyms2.o .tmp_${KERNEL_NAME}3
|
||||||
|
|
||||||
kallsyms .tmp_${KERNEL_NAME}3 .tmp_kallsyms3.o
|
kallsyms .tmp_${KERNEL_NAME}3 .tmp_kallsyms3.o
|
||||||
fi
|
fi
|
||||||
|
@ -262,11 +256,11 @@ if [ "${SRCARCH}" = "x86" ]; then
|
||||||
info SIDT ${KERNEL_NAME}.elf
|
info SIDT ${KERNEL_NAME}.elf
|
||||||
gen_idt ${KERNEL_NAME}.elf staticIdt.o
|
gen_idt ${KERNEL_NAME}.elf staticIdt.o
|
||||||
linker_command final-linker.cmd -DFINAL_LINK
|
linker_command final-linker.cmd -DFINAL_LINK
|
||||||
tinymountain_link ${KERNEL_NAME}.lnk final-linker.cmd staticIdt.o ${KERNEL_NAME}.elf
|
zephyr_link ${KERNEL_NAME}.lnk final-linker.cmd staticIdt.o ${KERNEL_NAME}.elf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info BIN ${KERNEL_NAME}.bin
|
info BIN ${KERNEL_NAME}.bin
|
||||||
tinymountain_bin_strip ${KERNEL_NAME}.elf ${KERNEL_NAME}.lst ${KERNEL_NAME}.bin ${KERNEL_NAME}.strip
|
zephyr_bin_strip ${KERNEL_NAME}.elf ${KERNEL_NAME}.lst ${KERNEL_NAME}.bin ${KERNEL_NAME}.strip
|
||||||
|
|
||||||
if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then
|
if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then
|
||||||
info SORTEX ${KERNEL_NAME}
|
info SORTEX ${KERNEL_NAME}
|
||||||
|
@ -278,7 +272,7 @@ mksysmap ${KERNEL_NAME}.elf System.map
|
||||||
|
|
||||||
# step a (see comment above)
|
# step a (see comment above)
|
||||||
if [ -n "${CONFIG_KALLSYMS}" ]; then
|
if [ -n "${CONFIG_KALLSYMS}" ]; then
|
||||||
mksysmap ${kallsyms_tinymountain} .tmp_System.map
|
mksysmap ${kallsyms_zephyr} .tmp_System.map
|
||||||
|
|
||||||
if ! cmp -s System.map .tmp_System.map; then
|
if ! cmp -s System.map .tmp_System.map; then
|
||||||
echo >&2 Inconsistent kallsyms data
|
echo >&2 Inconsistent kallsyms data
|
Loading…
Add table
Add a link
Reference in a new issue