Skip to content

Commit

Permalink
fixes gcc build on OSX so build matrix can be run locallly
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mcgowan committed Jan 26, 2016
1 parent 16bec3a commit 422f0e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion hal/src/gcc/ota_flash_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,7 @@ int HAL_FLASH_Read_CorePrivateKey(uint8_t *keyBuffer, private_key_generation_t*
return 0;
}


extern "C" void random_seed_from_cloud(unsigned int value)
{
}

7 changes: 6 additions & 1 deletion hal/src/gcc/wlan_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,9 @@ void wlan_set_ipaddress(const HAL_IPAddress* device, const HAL_IPAddress* netmas
int wlan_scan(wlan_scan_result_t callback, void* cookie)
{
return -1;
}
}

int wlan_get_credentials(wlan_scan_result_t callback, void* callback_data)
{
return -1;
}
3 changes: 2 additions & 1 deletion newlib_nano/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
include $(NEWLIBNANO_MODULE_PATH)/src/sources.mk

CFLAGS += -DHAVE_MMAP=0
ifneq ("$(PLATFORM_ID)","3")
CFLAGS += -Wno-unused-but-set-variable
CFLAGS += -Wno-unused-variable

endif

0 comments on commit 422f0e3

Please sign in to comment.