X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile;h=d2b9cb2841b84e4e5a6bb16392d972a77fc0e481;hb=09b50e7ad377fdfa66e16e9dd630996cbd433f87;hp=ac9701b428814344e71bb588a67ad8dd103d88c1;hpb=52f91d889a2c2a0f9e0b5e97fa7be8b584834016;p=firefly-linux-kernel-4.4.55.git diff --git a/Makefile b/Makefile index ac9701b42881..d2b9cb2841b8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 31 +SUBLEVEL = 36 EXTRAVERSION = NAME = Sneaky Weasel @@ -192,7 +192,14 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ # Default value for CROSS_COMPILE is not to prefix executables # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile export KBUILD_BUILDHOST := $(SUBARCH) -ARCH ?= $(SUBARCH) +#ARCH ?= $(SUBARCH) +ARCH ?= arm +ifneq ($(wildcard ../toolchain/arm-eabi-4.4.3),) +CROSS_COMPILE ?= ../toolchain/arm-eabi-4.4.3/bin/arm-eabi- +endif +ifneq ($(wildcard ../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3),) +CROSS_COMPILE ?= ../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- +endif CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) # Architecture as present in compile.h @@ -329,7 +336,11 @@ include $(srctree)/scripts/Kbuild.include # Make variables (CC, etc...) AS = $(CROSS_COMPILE)as +ifneq ($(wildcard $(CROSS_COMPILE)ld.bfd),) +LD = $(CROSS_COMPILE)ld.bfd +else LD = $(CROSS_COMPILE)ld +endif CC = $(CROSS_COMPILE)gcc CPP = $(CC) -E AR = $(CROSS_COMPILE)ar @@ -1219,7 +1230,7 @@ rpm: include/config/kernel.release FORCE # Brief documentation of the typical targets used # --------------------------------------------------------------------------- -boards := $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*_defconfig) +boards := $(wildcard $(srctree)/arch/$(SRCARCH)/configs/rk*_defconfig) boards := $(notdir $(boards)) board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig)) board-dirs := $(sort $(notdir $(board-dirs:/=))) @@ -1565,3 +1576,7 @@ FORCE: # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable so we can use it in if_changed and friends. .PHONY: $(PHONY) + + +%.o: %.uu prepare scripts FORCE + $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)