SmartAudio/lichee/brandy/u-boot-2014.07/make_nand

57 lines
1.5 KiB
Plaintext

#
# (C) Copyright 2017-2018
# Allwinner Technology Co., Ltd. <www.allwinnertech.com>
# wangwei <wangwei@allwinnertech.com>
#
# SPDX-License-Identifier: GPL-2.0+
#
SRCTREE := $(CURDIR)
TOPDIR := $(SRCTREE)
CROSS_COMPILE := $(TOPDIR)/../gcc-linaro/bin/arm-linux-gnueabi-
export TOPDIR
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
LDR = $(CROSS_COMPILE)ldr
STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
export AS LD CC CPP AR NM LDR STRIP OBJCOPY OBJDUMP
CFLGAS = -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin \
-ffreestanding -Os -fno-stack-protector -g -fstack-usage \
-Wno-format-nonliteral -D__KERNEL__ \
-march=armv7-a -mno-unaligned-access -DCONFIG_ARM -D__ARM__ \
-marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations \
-ffunction-sections -fdata-sections -fno-common -ffixed-r9 \
-msoft-float -pipe -nostdinc -isystem
INCLUDE = -I$(shell dirname `$(CC) -print-libgcc-file-name`)/include \
-I$(SRCTREE)/include \
-I$(SRCTREE)/arch/arm/include
export CFLGAS INCLUDE
libcomm0:
make -C nand_sunxi/common0/lib-nand
sun50iw1p1:
make -C nand_sunxi/sun50iw1p1/lib-nand
sun8iw17p1:
make -C nand_sunxi/sun8iw17p1/lib-nand
.PHONY:clean
clean:
make -C nand_sunxi/common0/lib-nand clean
clean_a64:
make -C nand_sunxi/sun50iw1p1/lib-nand clean
clean_t7:
make -C nand_sunxi/sun8iw17p1/lib-nand clean