diff mbox

[04/18] Add BUILD_* overrides

Message ID 871uc22j94.fsf@arh128.prevas.dk
State Accepted
Headers show

Commit Message

Esben Haabendal Feb. 27, 2013, 9:33 a.m. UTC
Yann Diorcet <diorcet.yann@gmail.com> writes:

> From: Yann Diorcet <yann.diorcet@belledonne-communications.com>
>
> Add missing overrides
> ---
>  conf/overrides.conf |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/conf/overrides.conf b/conf/overrides.conf
> index 28329e6..3d48c6a 100644
> --- a/conf/overrides.conf
> +++ b/conf/overrides.conf
> @@ -3,6 +3,7 @@ OVERRIDES = "local\
>  :DISTRO_${DISTRO}\
>  :TARGET_CPU_FAMILIES:TARGET_CPU_${TARGET_CPU}:TARGET_OS_${TARGET_OS}\
>  :HOST_CPU_FAMILIES:HOST_CPU_${HOST_CPU}:HOST_OS_${HOST_OS}\
> +:BUILD_CPU_FAMILIES:BUILD_CPU_${BUILD_CPU}:BUILD_OS_${BUILD_OS}\
>  :${RECIPE_TYPE}\
>  "
>  #TARGET_OVERRIDES = ":TARGET_CPU_${TARGET_CPU}:TARGET_OS_${TARGET_OS}"

Hi Yann

I don't know if you still have a need for this, but as it anyways seems
like the right thing to do (providing BUILD overrides just as HOST and
TARGET), I have made a similar commit on the master branch:



It will go into OE-lite/core 3.3.0.

/Esben
diff mbox

Patch

diff --git a/conf/overrides.conf b/conf/overrides.conf
index 40610f2..a927a00 100644
--- a/conf/overrides.conf
+++ b/conf/overrides.conf
@@ -3,6 +3,7 @@  OVERRIDES = "local\
 :DISTRO_${DISTRO}\
 :__TARGET__:TARGET_CPU_${TARGET_CPU}:TARGET_OS_${TARGET_OS}\
 :__HOST__:HOST_CPU_${HOST_CPU}:HOST_OS_${HOST_OS}\
+:__BUILD__:BUILD_CPU_${BUILD_CPU}:BUILD_OS_${BUILD_OS}\
 :${RECIPE_TYPE}\
 "
 #TARGET_OVERRIDES = ":TARGET_CPU_${TARGET_CPU}:TARGET_OS_${TARGET_OS}"
@@ -34,7 +35,7 @@  def late_overrides_fixup(d):
     if (d.get("TARGET_ARCH") != d.get("MACHINE_ARCH") and
         "MACHINE_${MACHINE}" in overrides):
         overrides.remove("MACHINE_${MACHINE}")
-    for type in ('HOST', 'TARGET'):
+    for type in ('BUILD', 'HOST', 'TARGET'):
         real_type = d.get(type + '_TYPE').upper()
         os = d.get(type + '_OS')
         families = d.get(real_type + '_CPU_FAMILIES')