Skip to content
Snippets Groups Projects
Select Git revision
  • 27655d216ccae3ea3e72765e61c9d8a1155816e2
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0011-build-explicitly-unexport-CONFIG_SITE.patch

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    0011-build-explicitly-unexport-CONFIG_SITE.patch 1.23 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Fri, 16 Jan 2015 03:49:40 +0100
    Subject: build: explicitly unexport CONFIG_SITE
    
    On systems with CONFIG_SITE in the environment (e.g. OpenSUSE) make will export
    the CONFIG_SITE set in include/package.mk by default. This will cause host
    builds to get the target site configuration, leading to all kinds of weirdness
    (wrong pointer size, wrong endianess).
    
    Fix this by explicitly unexporting CONFIG_SITE. The explicit export for the
    target builds overrides the unexport, so the target builds will still correctly
    get the site config.
    
    Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
    
    diff --git a/include/package.mk b/include/package.mk
    index 88ec3ef..53ca6de 100644
    --- a/include/package.mk
    +++ b/include/package.mk
    @@ -93,7 +93,7 @@ CONFIG_SITE:=$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME)
     CUR_MAKEFILE:=$(filter-out Makefile,$(firstword $(MAKEFILE_LIST)))
     SUBMAKE:=$(NO_TRACE_MAKE) $(if $(CUR_MAKEFILE),-f $(CUR_MAKEFILE))
     PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig
    -unexport QUIET
    +unexport QUIET CONFIG_SITE
     
     ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),)
       ifneq ($(if $(QUILT),,$(CONFIG_AUTOREBUILD)),)