diff options
author | Tobias Klauser <klto@zhaw.ch> | 2009-10-28 10:40:26 +0100 |
---|---|---|
committer | Tobias Klauser <klto@zhaw.ch> | 2009-10-28 10:40:26 +0100 |
commit | 7a185defac8b19f82a2c6a57e57efe28940623a3 (patch) | |
tree | e667b6659fd75537eb86f871943036e3c0a23dec /env/Makefile |
Add U-Boot environment tools, move custom Makefile entries
Diffstat (limited to 'env/Makefile')
-rw-r--r-- | env/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |