diff mbox series

mtk: fix firmware makefile to work with current osmocom-bb makefile system

Message ID 20171206034843.GA27384@localhost.localdomain
State New
Headers show
Series mtk: fix firmware makefile to work with current osmocom-bb makefile system | expand

Commit Message

Craig Comstock Dec. 6, 2017, 3:48 a.m. UTC
---
 src/target/firmware/Makefile.mtk | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/target/firmware/Makefile.mtk b/src/target/firmware/Makefile.mtk
index 30fa2fcf..927e31a0 100644
--- a/src/target/firmware/Makefile.mtk
+++ b/src/target/firmware/Makefile.mtk
@@ -4,14 +4,16 @@  BOARDS?=mt62xx
 # List of all applications (meant to be overridden on command line)
 APPLICATIONS?=loader_mtk
 
-mtkram_LDS=board/mediatek/ram.lds
-mtkram_OBJS=board/mediatek/start.ram.o
+APP_loader_mtk_ENVIRONMENTS=mtkram
+
+ENV_mtkram_LDS=board/mediatek/ram.lds
+ENV_mtkram_OBJS=board/mediatek/start.ram.o
 
 mtk_COMMON_OBJS=board/mediatek/uart.o
 
 # Mediatek MT62xx
-mt62xx_OBJS=$(mtk_COMMON_OBJS) board/mt62xx/init.o
-mt62xx_ENVIRONMENTS=mtkram
+BOARD_mt62xx_OBJS=$(mtk_COMMON_OBJS) board/mt62xx/init.o
+BOARD_mt62xx_ENVIRONMENTS=mtkram
 
 # Global include path
 INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include