From e82e715e89dde09644b274e452f437b6fe88a254 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 19 Jan 2011 23:49:22 +0100 Subject: add XX_FOR_BUILD variables, they are more standard compliant and used by autotools --- rules.mk | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 12ba160f2..8dcf26644 100644 --- a/rules.mk +++ b/rules.mk @@ -36,6 +36,7 @@ ADK_RUNTIME_TMPFS_SIZE:= $(strip $(subst ",, $(ADK_RUNTIME_TMPFS_SIZE))) ADK_RUNTIME_CONSOLE_SERIAL_SPEED:= $(strip $(subst ",, $(ADK_RUNTIME_CONSOLE_SERIAL_SPEED))) ADK_HOST:= $(strip $(subst ",, $(ADK_HOST))) ADK_VENDOR:= $(strip $(subst ",, $(ADK_VENDOR))) +ADK_TOOLS_ADDPATTERN_ARGS:= $(strip $(subst ",, $(ADK_TOOLS_ADDPATTERN_ARGS))) ifeq ($(strip ${ADK_HAVE_DOT_CONFIG}),y) ifneq ($(strip $(wildcard $(TOPDIR)/target/$(ADK_TARGET_ARCH)/target.mk)),) @@ -47,13 +48,20 @@ include $(TOPDIR)/mk/vars.mk export BASH HOSTCC HOSTCXX MAKE LANGUAGE LC_ALL OStype PATH -HOSTCFLAGS?= -O2 -HOSTCXXFLAGS?= -O2 +CPPFLAGS_FOR_BUILD?= +CFLAGS_FOR_BUILD?= -O2 -Wall +CXXFLAGS_FOR_BUILD?= -O2 -Wall +LDFLAGS_FOR_BUILD?= +FLAGS_FOR_BUILD:= ${CPPFLAGS_FOR_BUILD} ${CFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD} + +HOSTCFLAGS?= -O2 -Wall +HOSTCXXFLAGS?= -O2 -Wall HOSTCPPFLAGS?= HOSTLDFLAGS?= -TARGET_CFLAGS:= $(strip ${TARGET_CFLAGS} -fno-ident -fhonour-copts) + TARGET_CC:= $(strip ${TARGET_CC}) TARGET_CXX:= $(strip ${TARGET_CXX}) +TARGET_CFLAGS:= $(strip ${TARGET_CFLAGS} -fno-ident -fhonour-copts) ifneq (${show},) .DEFAULT_GOAL:= show -- cgit v1.2.3 From 9436a026e2e23d207fbdcb9e8bc9b076e3573700 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 22 Jan 2011 22:37:50 +0100 Subject: activate GCC cflags check, cleanup FLAGS stuff in OpenADK. * remove TCFLAGS/TLDFLAGS/TCPPFLAGS and only use TARGET_CFLAGS/TARGET_LDFLAGS/TARGET_CPPFLAGS, ... * activate GCC_HONOUR_COPTS and fix all packages to honour CFLAGS * use CC_FOR_BUILD, CFLAGS_FOR_BUILD, ... for all build compilation, remove HOST* variants * introduce KERNEL_MODULE_FLAGS for external kernel modules * mark rpm package as broken, mark syslinux for native builds only, mark libhugetlb for eglibc/glibc only usage --- rules.mk | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 8dcf26644..85d0b1bc0 100644 --- a/rules.mk +++ b/rules.mk @@ -46,7 +46,8 @@ endif include $(TOPDIR)/mk/vars.mk -export BASH HOSTCC HOSTCXX MAKE LANGUAGE LC_ALL OStype PATH +# needed? +#export BASH MAKE LANGUAGE LC_ALL OStype PATH CPPFLAGS_FOR_BUILD?= CFLAGS_FOR_BUILD?= -O2 -Wall @@ -54,15 +55,6 @@ CXXFLAGS_FOR_BUILD?= -O2 -Wall LDFLAGS_FOR_BUILD?= FLAGS_FOR_BUILD:= ${CPPFLAGS_FOR_BUILD} ${CFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD} -HOSTCFLAGS?= -O2 -Wall -HOSTCXXFLAGS?= -O2 -Wall -HOSTCPPFLAGS?= -HOSTLDFLAGS?= - -TARGET_CC:= $(strip ${TARGET_CC}) -TARGET_CXX:= $(strip ${TARGET_CXX}) -TARGET_CFLAGS:= $(strip ${TARGET_CFLAGS} -fno-ident -fhonour-copts) - ifneq (${show},) .DEFAULT_GOAL:= show show: -- cgit v1.2.3