Skip to content

Windows vs Posix detection behaves incorrectly under cygwin #31

@ppannuto

Description

@ppannuto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions