Trying the compile nrf51-sdk

These are the steps I’m executing to try to compile the nrf51-sdk on Linux:

$ git clone https://github.com/relayr/nrf51-sdk.git

$ cd nrf51-sdk

$ mv build.mk Makefile

$ cd nordic/

$ unzip ../../SDK/V8/nRF51_SDK_8.1.0_b6ed55f.zip (download from https://developer.nordicsemi.com/nRF51_SDK/)

$ cd ..

$ vi nordic/components/drivers_nrf/pstorage/pstorage.h

replace the include to:
#include "config/pstorage_platform.h"

$ make
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT pstorage.d -MT pstorage.o -MP -MF pstorage.d /comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/pstorage.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT system_nrf51.d -MT system_nrf51.o -MP -MF system_nrf51.d /comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/system_nrf51.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT rtc.d -MT rtc.o -MP -MF rtc.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/rtc.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT batt_serv.d -MT batt_serv.o -MP -MF batt_serv.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/batt_serv.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT util.d -MT util.o -MP -MF util.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/util.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT simble.d -MT simble.o -MP -MF simble.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/simble.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT onboard-led.d -MT onboard-led.o -MP -MF onboard-led.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/onboard-led.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT indicator.d -MT indicator.o -MP -MF indicator.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/indicator.c
arm-none-eabi-gcc -MM -I/comum/workspace/nRF51822/nrf51-sdk/relayr/src -I/comum/workspace/nRF51822/nrf51-sdk/relayr/include -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/hal -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/softdevice/s110/headers -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/drivers_nrf/pstorage/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/toolchain/gcc/ -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/device -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/ble/common -I/comum/workspace/nRF51822/nrf51-sdk/nordic/components/libraries/util -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -mabi=aapcs -ffunction-sections -fdata-sections -fno-builtin -fplan9-extensions -std=gnu11 -Wall -Wno-main -Werror -g -DNRF51 -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DSOFTDEVICE_PRESENT -D__HEAP_SIZE=0 -MT i2c.d -MT i2c.o -MP -MF i2c.d /comum/workspace/nRF51822/nrf51-sdk/relayr/src/i2c.c
make: *** No rule to make target `.hex', needed by `all'.  Stop.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s