Source: u-boot
Severity: wishlist
Tags: patch

debian/rules sets CROSS_COMPILE in the environment and the Make
command line.

Makefile overrides the environment with the value from the command
line, so the export by debian/rules is a confusing no-op.
>From 168667e25ccf4b7b10948a93495c9d20ceeaaa36 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <[email protected]>
Date: Sat, 16 Jan 2021 12:06:22 +0100
Subject: Stop exporting CROSS_COMPILE

debian/rules sets CROSS_COMPILE in the environment and the Make command line.

Makefile overrides the environment with the value from the command
line, so the export by debian/rules is a confusing no-op.

diff --git a/debian/rules b/debian/rules
index 87abd13f03..79c60ecf4d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ include /usr/share/dpkg/pkg-info.mk
 export DEBIAN_REVISION ?= $(shell echo $(DEB_VERSION) | sed -e 
's,.*+dfsg,+dfsg,')
 
 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-export CROSS_COMPILE ?= $(DEB_HOST_GNU_TYPE)-
+CROSS_COMPILE ?= $(DEB_HOST_GNU_TYPE)-
 cross_build_tools ?= y
 endif
 

Reply via email to