From 7a185defac8b19f82a2c6a57e57efe28940623a3 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 28 Oct 2009 10:40:26 +0100 Subject: Add U-Boot environment tools, move custom Makefile entries --- env/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 env/Makefile (limited to 'env/Makefile') diff --git a/env/Makefile b/env/Makefile new file mode 100644 index 0000000..2004a39 --- /dev/null +++ b/env/Makefile @@ -0,0 +1,20 @@ +EXEC = fw_env +OBJS = crc32.o fw_env.o fw_env_main.o + +CPPFLAGS += -DUSE_HOSTCC + +all: $(EXEC) + +$(EXEC): $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(LDLIBS) + +romfs: + $(ROMFSINST) -d /bin/fw_env + test -e $(ROMFSDIR)/etc/fw_env.config || $(ROMFSINST) -d /etc/fw_env.config + $(ROMFSINST) -s fw_env /bin/fw_printenv + $(ROMFSINST) -s fw_env /bin/fw_setenv + +clean: + -rm -f *.o fw_env *.gdb + +.PHONY: all fw_env clean romfs -- cgit v1.2.3-54-g00ecf