Commit 98cf7493 authored by Alejandro Mery's avatar Alejandro Mery
Browse files

tools/meminfo: move `meminfo` into tools/


Signed-off-by: default avatarAlejandro Mery <amery@geeks.cl>
parent db8a198b
......@@ -103,9 +103,6 @@ boot_head_sun5i.bin: boot_head_sun5i.elf
bootinfo: bootinfo.c
meminfo: meminfo.c
$(CROSS_COMPILE)gcc -g -O0 -Wall -static -o $@ $^
.gitignore: Makefile
@for x in $(TOOLS) '*.o' '*.swp'; do \
echo "$$x"; \
......
.PHONY: all clean
CC = gcc
AR = ar
CC = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar
srctree ?= ..
O ?= $(srctree)/out
OBJDIR := $(O)/tools
TOOLS := fexc fex2bin bin2fex
SRCS := fexc.c
TOOLS := fexc fex2bin bin2fex meminfo
SRCS := fexc.c meminfo.c
INCLUDES = -I$(srctree)/include
CFLAGS = -O2
......@@ -33,6 +33,9 @@ $(O)/fexc: $(OBJDIR)/fexc.o $(O)/libfex.a
$(O)/fex2bin $(O)/bin2fex: $(O)/fexc
ln -svnf fexc $@
$(O)/meminfo: $(OBJDIR)/meminfo.o
$(CC) -static $(CFLAGS) -o $@ $^
# dependencies
$(DEPS): Makefile
mkdir -p $(@D)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment