From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Sascha Hauer Date: Wed, 26 Feb 2014 15:13:18 +0100 Message-Id: <1393424001-26060-4-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1393424001-26060-1-git-send-email-s.hauer@pengutronix.de> References: <1393424001-26060-1-git-send-email-s.hauer@pengutronix.de> Subject: [ptxdist] [PATCH 4/7] barebox: Only install defaultenv file if it exists Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: mol@pengutronix.de, mkl@pengutronix.de Not all builds have a barebox_default_env. Only install it if it exists. Signed-off-by: Sascha Hauer --- rules/barebox.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/barebox.make b/rules/barebox.make index 2dcc0ca..d0f03ba 100644 --- a/rules/barebox.make +++ b/rules/barebox.make @@ -150,7 +150,7 @@ endif fi @if [ -e $(BAREBOX_DIR)/common/barebox_default_env ]; then \ install -D -m644 $(BAREBOX_DIR)/common/barebox_default_env $(IMAGEDIR)/barebox-default-environment; \ - else \ + elif [ -e $(BAREBOX_DIR)/barebox_default_env ]; then \ install -D -m644 $(BAREBOX_DIR)/barebox_default_env $(IMAGEDIR)/barebox-default-environment; \ fi @$(call touch) -- 1.8.5.3 -- ptxdist mailing list ptxdist@pengutronix.de