Build test applicatoin on host failer fixed.

Make host tests compilible.
This commit is contained in:
Dmitry 2018-07-30 14:23:35 +03:00
parent 2281f6318a
commit 6a950d6a17
4 changed files with 17 additions and 16 deletions

View file

@ -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 \

View file

@ -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();
} }

View file

@ -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))