--- zzzz-none-000/linux-4.1.38/arch/arm/Makefile 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/arch/arm/Makefile 2020-11-25 10:06:48.000000000 +0000 @@ -36,6 +36,9 @@ KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) endif +# AVM: keine unaligned Zugriffe machen +KBUILD_CFLAGS += -fstrict-volatile-bitfields -mno-unaligned-access + ifeq ($(CONFIG_FRAME_POINTER),y) KBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog endif @@ -129,6 +132,25 @@ KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float +ifdef BCM_KF # defined(CONFIG_BCM_KF_MISC_MAKEFILE) +# Copy from bigisland's Makefile, but most likely it does apply to BCM63138 +# ifeq ($(CONFIG_VFP),y) +# ifeq ($(CONFIG_VFPv3),y) +# # v3 vfp +# KBUILD_CFLAGS +=-mfpu=vfp3 -mfloat-abi=softfp +# KBUILD_AFLAGS +=-mfpu=vfp3 -mfloat-abi=softfp +# else +# #non-v3 vfp +# KBUILD_CFLAGS +=-mfloat-abi=softfp +# KBUILD_AFLAGS +=-mfloat-abi=softfp +# endif +# else +# #no vfp +# KBUILD_CFLAGS +=-mfloat-abi=soft +# KBUILD_AFLAGS +=-mfloat-abi=soft +# endif +endif # BCM_KF # CONFIG_BCM_KF_MISC_MAKEFILE + CHECKFLAGS += -D__arm__ #Default value @@ -154,6 +176,9 @@ machine-$(CONFIG_ARCH_AT91) += at91 machine-$(CONFIG_ARCH_AXXIA) += axxia machine-$(CONFIG_ARCH_BCM) += bcm +#ifdef BCM_KF # defined(CONFIG_BCM_KF_MISC_MAKEFILE) +machine-$(CONFIG_ARCH_BCM63XX) := bcm963xx +#endif # BCM_KF machine-$(CONFIG_ARCH_BERLIN) += berlin machine-$(CONFIG_ARCH_CLPS711X) += clps711x machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx @@ -217,6 +242,9 @@ # Platform directory name. This list is sorted alphanumerically # by CONFIG_* macro name. +#ifdef BCM_KF # defined(CONFIG_BCM_KF_MISC_MAKEFILE) +plat-$(CONFIG_ARCH_BCM63XX) := bcm63xx +#endif # BCM_KF plat-$(CONFIG_ARCH_EXYNOS) += samsung plat-$(CONFIG_ARCH_OMAP) += omap plat-$(CONFIG_ARCH_S3C64XX) += samsung @@ -279,6 +307,7 @@ core-y += arch/arm/net/ core-y += arch/arm/crypto/ core-y += arch/arm/firmware/ +core-y += arch/arm/avm_enh/ core-y += $(machdirs) $(platdirs) drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/