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

make keyboard fw failed on .SECONDARY: section #33

Open
hitsmaxft opened this issue Jun 6, 2024 · 0 comments
Open

make keyboard fw failed on .SECONDARY: section #33

hitsmaxft opened this issue Jun 6, 2024 · 0 comments

Comments

@hitsmaxft
Copy link

hitsmaxft commented Jun 6, 2024

Build environment : mac intel and mac m1
GNU Make 4.4.1

building will failure since build directories is not created, for example, _build

make -C redox-w-keyboard-basic/custom/armgcc
make[1]: Entering directory '/Users/qixiang/Projects/keyboards/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc'
Compiling file: system_nrf51.c
Assembler messages:
Fatal error: can't create _build/system_nrf51.o: No such file or directory
make[1]: *** [Makefile:153: _build/system_nrf51.o] Error 1
make[1]: Leaving directory '/Users/qixiang/Projects/keyboards/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc'
make: *** [Makefile:4: all] Error 2

to fix this issue , need to add all to the .SECONDARY section will fill the issue

- .SECONDARY:
+ .SECONDARY: all

#building all targets
all: $(OUTPUT_BINARY_DIRECTORY)/nrf51822_xxac-keyboard-left.hex  \
     $(OUTPUT_BINARY_DIRECTORY)/nrf51822_xxac-keyboard-right.hex

Since .SECONDARY will keep building targets after build. I'm wondering what purpose does it placed here

@hitsmaxft hitsmaxft changed the title make keyboard fw failed on .SECONDARY: section make keyboard fw failed on .SECONDARY: section Jun 6, 2024
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