From ba91ff10e8c974e50e429d072641ac5e0acdd72e Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 19 Oct 2016 17:03:52 +0200 Subject: nwztools: add a new plattools directory with code to run on the device This is code is intended to development into a library of code for the NWZ that will be useful to write the "bootloader" on those device. At the same time, it comes with test programs that are easy to run in firmware upgrade mode and also provide a great test bench for the library. At the moment, two test programs are available: - test_display: simply prints two messages using /usr/bin/lcdmsg - test_keys: displays input key event Change-Id: I9d214894ffc9127b528fcdd3eb5d6b61f4e657a7 --- utils/nwztools/plattools/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/nwztools/plattools/Makefile (limited to 'utils/nwztools/plattools/Makefile') diff --git a/utils/nwztools/plattools/Makefile b/utils/nwztools/plattools/Makefile new file mode 100644 index 0000000000..d3efdb74a3 --- /dev/null +++ b/utils/nwztools/plattools/Makefile @@ -0,0 +1,17 @@ +PREFIX?=arm-sony-linux-gnueabi- +CC=$(PREFIX)gcc +LD=$(PREFIX)gcc +CFLAGS=-std=gnu99 -Wall -O2 +INCLUDES=-I. + +LIB_FILES=nwz_lib.c +ALL_BUT_LIB=$(patsubst %.c,%.elf,$(filter-out $(LIB_FILES),$(wildcard *.c))) + +all: $(ALL_BUT_LIB) + +%.elf: %.c $(LIB_FILES) + $(CC) $(CFLAGS) $(INCLUDES) -o $@ $^ + +clean: + rm -rf $(ALL_BUT_LIB) + -- cgit v1.2.3