Commit 6d079432 authored by Andreas Werner's avatar Andreas Werner
Browse files

first c2000 port (not tested)

parent 6fea9448
......@@ -327,12 +327,13 @@ $(sort $(subdir-obj-y)): $(subdir-ym) ;
# Rule to compile a set of .o files into one .o file
#
ifdef builtin-target
KBUILD_ARFLAGS += $(call ar-option,c)
quiet_cmd_link_o_target = LD $@
# If the list of objects to link is empty, just create an empty built-in.o
cmd_link_o_target = $(if $(strip $(obj-y)),\
$(LD) $(ld_flags) -r -o $@ $(filter $(obj-y), $^) \
$(cmd_secanalysis),\
rm -f $@; $(AR) rcs$(KBUILD_ARFLAGS) $@)
rm -f $@; $(AR) rs$(KBUILD_ARFLAGS) $@)
$(builtin-target): $(obj-y) FORCE
$(call if_changed,link_o_target)
......
......@@ -242,16 +242,16 @@ LDFLAGS_KERNEL += $(EXTRA_LDFLAGS)
INCLUDES := -I$(srctree)/include \
-I$(srctree)/driver/include \
-I$(srctree)/mach/include \
-include $(srctree)/include/generated/autoconf.h \
-include $(srctree)/include/generated/autoconf.h \
-I$(srctree)/freertos/include/
LINUXINCLUDE := $(INCLUDES)
CFLAGS_KERNEL += $(INCLUDES)
KBUILD_CFLAGS := -Wall -Wundef -Wno-trigraphs \
-fstrict-aliasing -Wstrict-aliasing=3 -fno-common \
-Werror-implicit-function-declaration \
-fno-delete-null-pointer-checks -std=gnu99 \
-fno-exceptions
KBUILD_CFLAGS := $(cc-option, -Wall,) $(cc-option, -Wundef) $(cc-option, -Wno-trigraphs) \
$(cc-option, -fstrict-aliasing) $(cc-option, -Wstrict-aliasing=3) $(cc-option, -fno-common) \
$(cc-option, -Werror-implicit-function-declaration)\
$(cc-option, -fno-delete-null-pointer-checks $(cc-option, -std=gnu99) \
$(cc-option, -fno-exceptions)
KBUILD_AFLAGS := -D__ASSEMBLY__
export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
......@@ -481,9 +481,9 @@ KBUILD_CFLAGS += -fdata-sections -ffunction-sections
EXTRA_LINKFLAGS += -Wl,--gc-sections
endif
ifdef CONFIG_GENERATE_UNWIND_TABLES
EXTRA_CFLAGS += -funwind-tables
EXTRA_CFLAGS += $(cc-option -funwind-tables)
else
EXTRA_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
EXTRA_CFLAGS += $(cc-option -fno-unwind-tables) $(cc-option -fno-asynchronous-unwind-tables)
endif
quiet_cmd_$(PROJECT_NAME) = LD $@
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment