
Hi Simon,
2015-03-13 3:55 GMT+09:00 Simon Glass sjg@chromium.org:
- More generally, I'd like to be able to add some arbitrary make steps that
are peculiar to my boards Makefile, but I can't figure this out either, so far.
I've tried adding my_all to extra-y and then adding steps for my_all, similar to the following.
8<--- extra-y := test.img my_all
.PHONY my_all my_all : test1.txt # some arbitrary commands to be executed if test1.txt isn't present cp -f test.txt test1.txt 8<---
In this case, make reports an error
make[1]: *** No rule to make target `board/my_board/my_all', needed by `__build'. Stop. make: *** [board/my_board] Error 2
Any help would be appreciated.
Maybe:
targets += test1.txt
"targets" is necessary for including ".*.cmd" files, so it has nothing to do with the error here.
Moreover, as $(extra-y) is automatically added to "targets", you need not touch "targets" in most cases.