Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows vs Posix detection behaves incorrectly under cygwin #31

Open
ppannuto opened this issue Nov 29, 2017 · 0 comments
Open

Windows vs Posix detection behaves incorrectly under cygwin #31

ppannuto opened this issue Nov 29, 2017 · 0 comments

Comments

@ppannuto
Copy link
Member

Cygwin should use the posix variations, not the windows ones.


Needs to be fixed in two places:

but now I get this error:

$ make
BUILD OPTIONS:
  SoftDevice  s130
  SDK         11
  nRF         nrf51822
  RAM         16 kB
  FLASH       256 kB
  Board       BOARD_NULL

/bin/sh: -c: line 1: syntax error: unexpected end of file
nrf5x-base//make/Makefile:889: recipe for target '_build/system_nrf51.o' failed
make: *** [_build/system_nrf51.o] Error 1


Hrm.. that's weird, but I have a guess -- I assume you're building this in cygwin?

Edit nrf5x-base/make/Makefile
Delete lines 867, 868, 869, and 871
  (force it to include Makefile.posix)

I'm guessing it's incorrectly thinking you're building in a windows environment



A little better..

$ make
BUILD OPTIONS:
  SoftDevice  s130
  SDK         11
  nRF         nrf51822
  RAM         16 kB
  FLASH       256 kB
  Board       BOARD_NULL

  CC        nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/toolchain/system_nrf51.c
  CC        main.c
  CC        goc.c
  CC        uart.c
  CC        nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/libraries/timer/app_timer.c
  CC        nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/libraries/util/app_error.c
  CC        nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/libraries/util/app_util_platform.c
  CC        nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/drivers_nrf/common/nrf_drv_common.c
In file included from nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/drivers_nrf/common/nrf_drv_common.c:14:0:
nrf5x-base//make/../sdk/nrf51_sdk_11.0.0/components/drivers_nrf/common/nrf_drv_common.h:20:28: fatal error: nrf_drv_config.h: No such file or directory
compilation terminated.
nrf5x-base//make/Makefile:889: recipe for target '_build/nrf_drv_common.o' failed
make: *** [_build/nrf_drv_common.o] Error 1



Ugh..

Same problem in lines 9-13 of:
nrf5x-base/sdk/nrf51_sdk_11.0.0/components/toolchain/gcc/Makefile.common

Looks like that should be the only other place where it's choosing platforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant