代码拉取完成,页面将自动刷新
同步操作将从 韦东山/TinaD1-u-boot-2018 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#
# (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)/../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-
DRIVER_DIR := $(TOPDIR)/drivers/sunxi_flash/nand
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 = -nostdinc -isystem \
-D__KERNEL__ -D__UBOOT__ \
-Wall -Wstrict-prototypes \
-Wno-format-security -fno-builtin -ffreestanding -fshort-wchar -Os \
-fno-stack-protector -fno-delete-null-pointer-checks \
-fstack-usage -Wno-format-nonliteral \
-Werror=date-time -D__ARM__ \
-Wa,-mimplicit-it=always -mthumb -mthumb-interwork \
-mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access \
-ffunction-sections -fdata-sections -fno-common \
-ffixed-r9 -msoft-float -pipe -march=armv7-a \
-D__LINUX_ARM_ARCH__=7
INCLUDE = -I$(shell dirname `$(CC) -print-libgcc-file-name`)/include \
-I$(SRCTREE)/include \
-I$(SRCTREE)/arch/arm/include
export CFLGAS INCLUDE
platform=$(shell cat .config | grep "CONFIG_MACH_SUN8IW18=y" | awk -F '=' '{print $$1}')
.PHONY:clean clean_libcomm1 clean_libcomm0
all:libcomm0 libcomm1
libcomm0:clean_libcomm0
ifneq ("$(wildcard $(DRIVER_DIR)/common0/lib-nand)","")
make -C $(DRIVER_DIR)/common0/lib-nand
endif
clean_libcomm0:
ifneq ("$(wildcard $(DRIVER_DIR)/common0/lib-nand)","")
make -k -C $(DRIVER_DIR)/common0/lib-nand clean
endif
ifeq ("$(platform)", "CONFIG_MACH_SUN8IW18")
libcomm1:clean_libcomm1
ifneq ("$(wildcard $(DRIVER_DIR)/common1/lib-nand)","")
make -C $(DRIVER_DIR)/common1/lib-nand
endif
else
libcomm1:clean_libcomm1
ifneq ("$(wildcard $(DRIVER_DIR)/common1/)","")
make -C $(DRIVER_DIR)/common1/lib
endif
endif
libsun8iw7p1:clean_sun8iw7p1
ifneq ("$(wildcard $(DRIVER_DIR)/sun8iw7p1/lib-nand)","")
make -C $(DRIVER_DIR)/sun8iw7p1/lib-nand
endif
ifeq ("$(platform)", "CONFIG_MACH_SUN8IW18")
clean_libcomm1:
ifneq ("$(wildcard $(DRIVER_DIR)/common1/lib-nand)","")
make -k -C $(DRIVER_DIR)/common1/lib-nand clean
endif
else
clean_libcomm1:
ifneq ("$(wildcard $(DRIVER_DIR)/common1/lib)","")
make -k -C $(DRIVER_DIR)/common1/lib clean
endif
endif
clean_sun8iw7p1:
ifneq ("$(wildcard $(DRIVER_DIR)/sun8iw7p1/lib-nand)","")
make -k -C $(DRIVER_DIR)/sun8iw7p1/lib-nand clean
endif
clean: clean_libcomm1 clean_libcomm0 clean_sun8iw7p1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。