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 ...@@ -103,9 +103,6 @@ boot_head_sun5i.bin: boot_head_sun5i.elf
bootinfo: bootinfo.c bootinfo: bootinfo.c
meminfo: meminfo.c
$(CROSS_COMPILE)gcc -g -O0 -Wall -static -o $@ $^
.gitignore: Makefile .gitignore: Makefile
@for x in $(TOOLS) '*.o' '*.swp'; do \ @for x in $(TOOLS) '*.o' '*.swp'; do \
echo "$$x"; \ echo "$$x"; \
......
.PHONY: all clean .PHONY: all clean
CC = gcc CC = $(CROSS_COMPILE)gcc
AR = ar AR = $(CROSS_COMPILE)ar
srctree ?= .. srctree ?= ..
O ?= $(srctree)/out O ?= $(srctree)/out
OBJDIR := $(O)/tools OBJDIR := $(O)/tools
TOOLS := fexc fex2bin bin2fex TOOLS := fexc fex2bin bin2fex meminfo
SRCS := fexc.c SRCS := fexc.c meminfo.c
INCLUDES = -I$(srctree)/include INCLUDES = -I$(srctree)/include
CFLAGS = -O2 CFLAGS = -O2
...@@ -33,6 +33,9 @@ $(O)/fexc: $(OBJDIR)/fexc.o $(O)/libfex.a ...@@ -33,6 +33,9 @@ $(O)/fexc: $(OBJDIR)/fexc.o $(O)/libfex.a
$(O)/fex2bin $(O)/bin2fex: $(O)/fexc $(O)/fex2bin $(O)/bin2fex: $(O)/fexc
ln -svnf fexc $@ ln -svnf fexc $@
$(O)/meminfo: $(OBJDIR)/meminfo.o
$(CC) -static $(CFLAGS) -o $@ $^
# dependencies # dependencies
$(DEPS): Makefile $(DEPS): Makefile
mkdir -p $(@D) 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