tools: Fix broken object compilation rules
As these rules depend on non-existing headers as well (likely copy &
pasted from fiptool), they never matched, and the built-in rules were
used. That led to random breakages when e.g. CPPFLAGS was suddenly
evaluated and contained invalid options.

For the stm32image, this reveals that we were relying on the built-in
rules by passing -D_GNU_SOURCE via CPPFLAGS, rather than using CFLAGS as
used in the local rule. Fix that as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
1 parent 37c4341 commit c0f73edc9b04023a24a1e2103b442a94297921a7
@Jan Kiszka Jan Kiszka authored on 2 Oct 2018
Konstantin Porotchkin committed on 3 Oct 2018
Showing 2 changed files
View
tools/doimage/Makefile
View
tools/stm32image/Makefile