]> granicus.if.org Git - esp-idf/commitdiff
Build test applicatoin on host failer fixed.
authorDmitry <Dmitry@espressif.com>
Mon, 30 Jul 2018 11:23:35 +0000 (14:23 +0300)
committerDmitry <Dmitry@espressif.com>
Tue, 31 Jul 2018 05:45:43 +0000 (08:45 +0300)
Make host tests compilible.

components/spi_flash/sim/stubs/Makefile.files
components/spi_flash/sim/stubs/esp32/esp_random.c [moved from components/wear_levelling/test_wl_host/stubs/log/esp_random.c with 93% similarity]
components/spi_flash/sim/stubs/esp32/include/esp_system.h [moved from components/wear_levelling/test_wl_host/stubs/log/include/esp_system.h with 100% similarity]
components/wear_levelling/test_wl_host/Makefile

index 4ce825caef45d625b80eb041540538c63d23e7ba..7b37db7342fde2b1e5c43e5ffe234cd1f6ca4fa5 100644 (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 \
similarity index 93%
rename from components/wear_levelling/test_wl_host/stubs/log/esp_random.c
rename to components/spi_flash/sim/stubs/esp32/esp_random.c
index e664c561f04f1d9d694fd9c7c08ea4e8b11f6810..389796d3eef99d066b87c8867f9d1c2e65d0988f 100644 (file)
@@ -1,14 +1,14 @@
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <stdarg.h>\r
-#include <time.h>\r
-#include <string.h>\r
-#include <stddef.h>\r
-\r
-#include "esp_system.h"\r
-\r
-uint32_t esp_random(void)\r
-{\r
-    return (uint32_t)rand();\r
-}\r
-\r
+#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();
+}
+
index 496529ec7fc16a55bcaa0af4885bf1e46fd53c18..5d94990cc26c43819738ee2b55d0db92f248a8a8 100644 (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))