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 \
log/log.c \
newlib/lock.c \
esp32/crc.cpp
esp32/crc.cpp \
esp32/esp_random.c
INCLUDE_DIRS := \
../include \

View File

@ -1,14 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <string.h>
#include <stddef.h>
#include "esp_system.h"
uint32_t esp_random(void)
{
return (uint32_t)rand();
}
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <string.h>
#include <stddef.h>
#include "esp_system.h"
uint32_t esp_random(void)
{
return (uint32_t)rand();
}

View File

@ -16,7 +16,7 @@ SPI_FLASH_SIM_LIB := libspi_flash.a
include Makefile.files
all: test
log/esp_random.c \
ifndef SDKCONFIG
SDKCONFIG_DIR := $(dir $(realpath sdkconfig/sdkconfig.h))