2022-10-29 06:38:44 +02:00
|
|
|
## SPDX-License-Identifier: GPL-2.0-only
|
2023-04-11 12:26:12 +02:00
|
|
|
TOP = $(abspath ../../..)
|
2015-12-10 09:36:10 +01:00
|
|
|
DOIMAGE_FOLDER = marvell/doimage_mv
|
|
|
|
DOIMAGE_BINARY = doimage
|
|
|
|
|
2023-04-11 12:26:12 +02:00
|
|
|
CFLAGS = -g -O1 -I./../inc -DMV_CPU_LE -I $(TOP)/src/commonlib/bsd/include
|
2015-12-10 09:36:10 +01:00
|
|
|
|
|
|
|
$(objutil)/$(DOIMAGE_FOLDER):
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
$(objutil)/$(DOIMAGE_FOLDER)/doimage.o: $(top)/util/marvell/doimage_mv/doimage.c $(objutil)/$(DOIMAGE_FOLDER)
|
|
|
|
$(HOSTCC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
$(objutil)/$(DOIMAGE_FOLDER)/$(DOIMAGE_BINARY): $(objutil)/$(DOIMAGE_FOLDER)/doimage.o
|
|
|
|
$(HOSTCC) $(CFLAGS) -o $@ $^
|