diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-10-30 14:21:52 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-10-30 14:48:38 +0800 |
commit | ae51f41d14f548d494ac41e0d21137c5a4c3f59c (patch) | |
tree | 6ddb9d1aaa7bd5bad5bbf8497edc2e08ff208d79 /Makefile | |
download | uext4-ae51f41d14f548d494ac41e0d21137c5a4c3f59c.tar.xz |
import the U-Boot code and make it compile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9760566 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2006 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. +# +# (C) Copyright 2003 +# Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de +# + +ARCH := x86 +CROSS_COMPILE := +CC = $(CROSS_COMPILE)gcc +AR = $(CROSS_COMPILE)ar +NOSTDINC_FLAGS = -nostdinc -isystem $(shell $(CC) -print-file-name=include) +CFLAGS += $(NOSTDINC_FLAGS) -I include -I arch/$(ARCH)/include -include include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -fno-builtin + +obj := ext4fs.o ext4_common.o dev.o +ifeq ($(CONFIG_EXT4_WRITE), y) + CFLAGS += -DCONFIG_EXT4_WRITE=1 + obj += ext4_write.o ext4_journal.o crc16.o +endif + +ext4.a: $(obj) + $(AR) r ext4.a $^ + +clean: + bash -c 'rm -f *.o *.a' |