Commits (3)
......@@ -148,8 +148,7 @@ __cpp_flags = $(call flags,_cpp_flags)
endif
c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
$(__c_flags) $(modkern_cflags) \
-D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags)
$(__c_flags) $(modkern_cflags)
a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
$(__a_flags) $(modkern_aflags)
......
......@@ -247,11 +247,11 @@ INCLUDES := -I$(srctree)/include \
LINUXINCLUDE := $(INCLUDES)
CFLAGS_KERNEL += $(INCLUDES)
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_CFLAGS := $(call cc-option,-Wall) $(call cc-option, -Wundef) $(call cc-option, -Wno-trigraphs) \
$(call cc-option, -fstrict-aliasing) $(call cc-option, -Wstrict-aliasing=3) $(call cc-option, -fno-common) \
$(call cc-option, -Werror-implicit-function-declaration)\
$(call cc-option, -fno-delete-null-pointer-checks) $(call cc-option, -std=gnu99) \
$(call cc-option, -fno-exceptions)
KBUILD_AFLAGS := -D__ASSEMBLY__
export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
......@@ -487,9 +487,9 @@ KBUILD_CFLAGS += -fdata-sections -ffunction-sections
EXTRA_LINKFLAGS += -Wl,--gc-sections
endif
ifdef CONFIG_GENERATE_UNWIND_TABLES
EXTRA_CFLAGS += $(cc-option -funwind-tables)
EXTRA_CFLAGS += $(call cc-option, -funwind-tables)
else
EXTRA_CFLAGS += $(cc-option -fno-unwind-tables) $(cc-option -fno-asynchronous-unwind-tables)
EXTRA_CFLAGS += $(call cc-option, -fno-unwind-tables) $(call cc-option, -fno-asynchronous-unwind-tables)
endif
quiet_cmd_$(PROJECT_NAME) = LD $@
......
......@@ -70,6 +70,7 @@ CONFIG_MACH_HAS_TIMER=y
CONFIG_MACH_HAS_PWM=y
CONFIG_MACH_HAS_CAPTURE=y
CONFIG_GPIO_PORT_COUNT=5
CONFIG_MACH_HAS_CAN=y
CONFIG_MACH_HAS_NVIC=y
CONFIG_EXTERNAL_OSCILLATOR=y
CONFIG_MACH_NEED_GENERIC_SYSINIT=y
......@@ -87,12 +88,18 @@ CONFIG_NXP_GPIO_MUX=y
#
# NXP KV4x Settings
#
CONFIG_MKV46F128VLH16=y
# CONFIG_MKV46F128VLL16 is not set
# CONFIG_MKV46F256VLH16 is not set
# CONFIG_MKV46F256VLL16 is not set
CONFIG_MACH_KV4X_DISABLE_WDOG=y
CONFIG_KV4X_GPIO=y
#
# Waring: PLL Setting could damage Target
#
CONFIG_MACH_MKV4X_EXTERNAL=y
# CONFIG_MACH_MKV4X_INTERNAL is not set
# CONFIG_MACH_MKV4X_EXTERNAL_REF_CLOCK is not set
#
......@@ -177,6 +184,10 @@ CONFIG_MACH_MKV4X_VDIV_42=y
# CONFIG_MACH_MKV4X_VDIV_45 is not set
# CONFIG_MACH_MKV4X_VDIV_46 is not set
# CONFIG_MACH_MKV4X_VDIV_47 is not set
#
# Clock Settings
#
CONFIG_MACH_MKV4X_OUTDIV1_1=y
# CONFIG_MACH_MKV4X_OUTDIV1_2 is not set
# CONFIG_MACH_MKV4X_OUTDIV1_3 is not set
......@@ -207,14 +218,14 @@ CONFIG_MACH_MKV4X_OUTDIV2_2=y
# CONFIG_MACH_MKV4X_OUTDIV2_14 is not set
# CONFIG_MACH_MKV4X_OUTDIV2_15 is not set
# CONFIG_MACH_MKV4X_OUTDIV2_16 is not set
CONFIG_MACH_MKV4X_OUTDIV4_7=y
# CONFIG_MACH_MKV4X_OUTDIV4_7 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_1 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_2 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_3 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_4 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_5 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_6 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_8 is not set
CONFIG_MACH_MKV4X_OUTDIV4_8=y
# CONFIG_MACH_MKV4X_OUTDIV4_9 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_10 is not set
# CONFIG_MACH_MKV4X_OUTDIV4_11 is not set
......@@ -231,6 +242,7 @@ CONFIG_MACH_MKV4X_OUTDIV4_7=y
# Generic Driver Settings
#
# CONFIG_INSTANCE_NAME is not set
CONFIG_USE_STATIC=y
# CONFIG_GEN_VERSION is not set
CONFIG_GCC=y
CONFIG_GCC_BACKTRACE=y
......@@ -260,6 +272,7 @@ CONFIG_MALLOC_3=y
# CONFIG_NLIBC is not set
# CONFIG_RPROC is not set
# CONFIG_COUNTER is not set
# CONFIG_CAN is not set
# CONFIG_I2C is not set
#
......@@ -269,14 +282,14 @@ CONFIG_MALLOC_3=y
#
# Basic Settings
#
# CONFIG_SUPPORT_STATIC_ALLOCATION is not set
CONFIG_SUPPORT_STATIC_ALLOCATION=y
CONFIG_SUPPORT_DYNAMIC_ALLOCATION=y
# CONFIG_HEAP_1 is not set
# CONFIG_HEAP_2 is not set
CONFIG_HEAP_3=y
# CONFIG_HEAP_4 is not set
# CONFIG_HEAP_5 is not set
# CONFIG_USE_MALLOC_FAILED_HOOK is not set
CONFIG_USE_MALLOC_FAILED_HOOK=y
# CONFIG_INCLUDE_USER_FREERTOS_CONFIG is not set
# CONFIG_ASSERT_DEFAULT is not set
CONFIG_ASSERT_DEFAULT_PRINT=y
......@@ -296,7 +309,9 @@ CONFIG_MAX_PRIORITIES=5
CONFIG_MINIMAL_STACK_SIZE=128
CONFIG_MAX_TASK_NAME_LEN=16
CONFIG_NUM_THREAD_LOCAL_STORAGE_POINTERS=0
# CONFIG_USE_TICKLESS_IDLE is not set
CONFIG_USE_TICKLESS_IDLE=y
CONFIG_EXPECTED_IDLE_TIME_BEFORE_SLEEP=2
# CONFIG_PRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING_FUNCTION is not set
# CONFIG_USE_IDLE_HOOK is not set
# CONFIG_USE_DAEMON_TASK_STARTUP_HOOK is not set
CONFIG_INCLUDE_vTaskSuspend=y
......@@ -308,7 +323,9 @@ CONFIG_IDLE_SHOULD_YIELD=y
# CONFIG_USE_NEWLIB_REENTRANT is not set
# CONFIG_USE_TASK_NOTIFICATIONS is not set
# CONFIG_USE_PORT_OPTIMISED_TASK_SELECTION is not set
# CONFIG_CHECK_STACK_OVERFLOW is not set
CONFIG_CHECK_STACK_OVERFLOW=y
# CONFIG_CHECK_FOR_STACK_OVERFLOW_1 is not set
CONFIG_CHECK_FOR_STACK_OVERFLOW_2=y
# CONFIG_RECORD_STACK_HIGH_ADDRESS is not set
# CONFIG_USE_TICK_HOOK is not set
CONFIG_STACK_DEPTH_TYPE_32BIT=y
......@@ -320,7 +337,7 @@ CONFIG_INITIAL_TICK_COUNT=0
#
# Function Support
#
# CONFIG_INCLUDE_vTaskDelete is not set
CONFIG_INCLUDE_vTaskDelete=y
# CONFIG_INCLUDE_xTaskGetIdleTaskHandle is not set
CONFIG_INCLUDE_vTaskDelay=y
# CONFIG_INCLUDE_vTaskDelayUntil is not set
......