Build test applicatoin on host failer fixed.
Make host tests compilible.
This commit is contained in:
parent
2281f6318a
commit
6a950d6a17
|
@ -2,7 +2,8 @@ SOURCE_FILES := \
|
||||||
app_update/esp_ota_eps.c \
|
app_update/esp_ota_eps.c \
|
||||||
log/log.c \
|
log/log.c \
|
||||||
newlib/lock.c \
|
newlib/lock.c \
|
||||||
esp32/crc.cpp
|
esp32/crc.cpp \
|
||||||
|
esp32/esp_random.c
|
||||||
|
|
||||||
INCLUDE_DIRS := \
|
INCLUDE_DIRS := \
|
||||||
../include \
|
../include \
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "esp_system.h"
|
#include "esp_system.h"
|
||||||
|
|
||||||
uint32_t esp_random(void)
|
uint32_t esp_random(void)
|
||||||
{
|
{
|
||||||
return (uint32_t)rand();
|
return (uint32_t)rand();
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ SPI_FLASH_SIM_LIB := libspi_flash.a
|
||||||
include Makefile.files
|
include Makefile.files
|
||||||
|
|
||||||
all: test
|
all: test
|
||||||
log/esp_random.c \
|
|
||||||
|
|
||||||
ifndef SDKCONFIG
|
ifndef SDKCONFIG
|
||||||
SDKCONFIG_DIR := $(dir $(realpath sdkconfig/sdkconfig.h))
|
SDKCONFIG_DIR := $(dir $(realpath sdkconfig/sdkconfig.h))
|
||||||
|
|
Loading…
Reference in a new issue