soc: intel_s1000: remove log and ztest XCC fixes

These fixes are no longer needed for apps to compile.
So removing them.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-03-24 12:43:26 -07:00 committed by Kumar Gala
commit 7c4b13c583
3 changed files with 0 additions and 128 deletions

View file

@ -2,10 +2,3 @@
zephyr_library_sources_ifdef(CONFIG_CPLUSPLUS cpp_fixes.c)
zephyr_library_sources_ifdef(CONFIG_NEWLIB_LIBC newlib_fixes.c)
if(NOT (CC STREQUAL "clang"))
# These two are due to IS_ENABLED() not being parsed correctly
# in old GCC 4.2 based XCC. Clang is not affected.
zephyr_library_sources_ifdef(CONFIG_LOG_MINIMAL log_minimal_fixes.c)
zephyr_library_sources_ifdef(CONFIG_TEST ztest_fixes.c)
endif()

View file

@ -1,105 +0,0 @@
/*
* Copyright (c) 2019, Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log_msg.h>
#include <logging/log_instance.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
#include <syscall.h>
#include <sys/util.h>
#include <sys/printk.h>
void log_0(const char *str, struct log_msg_ids src_level)
{
}
void log_1(const char *str,
log_arg_t arg1,
struct log_msg_ids src_level)
{
}
void log_2(const char *str,
log_arg_t arg1,
log_arg_t arg2,
struct log_msg_ids src_level)
{
}
void log_3(const char *str,
log_arg_t arg1,
log_arg_t arg2,
log_arg_t arg3,
struct log_msg_ids src_level)
{
}
void log_n(const char *str,
log_arg_t *args,
uint32_t narg,
struct log_msg_ids src_level)
{
}
void log_hexdump(const char *str,
const uint8_t *data,
uint32_t length,
struct log_msg_ids src_level)
{
}
void log_string_sync(struct log_msg_ids src_level, const char *fmt, ...)
{
}
void log_hexdump_sync(struct log_msg_ids src_level, const char *metadata,
const uint8_t *data, uint32_t len)
{
}
void log_generic(struct log_msg_ids src_level, const char *fmt, va_list ap,
enum log_strdup_action strdup_action)
{
}
void log_generic_from_user(struct log_msg_ids src_level,
const char *fmt, va_list ap)
{
}
bool log_is_strdup(const void *buf)
{
return false;
}
void log_free(void *buf)
{
}
uint32_t log_get_strdup_pool_utilization(void)
{
return 0;
}
uint32_t log_get_strdup_longest_string(void)
{
return 0;
}
void log_dropped(void)
{
}
void __printf_like(2, 3) log_from_user(struct log_msg_ids src_level,
const char *fmt, ...)
{
}
void log_hexdump_from_user(struct log_msg_ids src_level, const char *metadata,
const uint8_t *data, uint32_t len)
{
}

View file

@ -1,16 +0,0 @@
/*
* Copyright (c) 2019, Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <toolchain.h>
#ifndef CONFIG_ZTEST_RETEST_IF_PASSED
void sys_reboot(int type)
{
ARG_UNUSED(type);
}
#endif /* CONFIG_ZTEST_RETEST_IF_PASSED */