From patchwork Thu Sep 10 20:55:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 53392 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 3A0F622DC0 for ; Thu, 10 Sep 2015 20:55:27 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf11664356wic.2 for ; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=4O1zDweR1L269u0RHJGuWbu7kDoykvxtVM5sGb4fbEg=; b=ddKxic2Le56u4rRSX9kRtbSJ6/Q3tVpalzPEW7QYqtVh5Ij1qtfyDv5S6DSs7yjiZD Npn/RB6aJgmP+JitR2OALjJhjMWiKOrPSUZqVs/O3Q6LwpwOD5YMXI/jC3annIe2+Go6 z41h9traI35rhS1zmfQwhm7G8hYDd25h2Keo+TDQpzNKU8h9PAlHplkl29ou36cncXz3 Ra8sAMMltsiFIGh0eIKTxZE3KE3kFVXTFSvfmo3z2Cf29BBnHRZwJRz7EiqrZhxMusQ/ 95JztC0xuB+VAFRrW7yFL/F2rmWgJvVyGVJ700iMlmCdXHpSCz7Hv5btbssu4lAlDWu8 TbGg== X-Gm-Message-State: ALoCoQmTbujQJTY5VoJnqO6MLkD+E6NNP4RyXXiYHLkX7P3wz90tCTo+ErQuenD6QbrwQlWV25JJ X-Received: by 10.112.149.39 with SMTP id tx7mr10346739lbb.11.1441918526527; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.70 with SMTP id y6ls230797lay.55.gmail; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) X-Received: by 10.112.85.204 with SMTP id j12mr37033739lbz.47.1441918526381; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id c2si11563862lag.44.2015.09.10.13.55.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 13:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lanb10 with SMTP id b10so35731740lan.3 for ; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) X-Received: by 10.112.125.134 with SMTP id mq6mr27012384lbb.19.1441918526281; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1196171lbq; Thu, 10 Sep 2015 13:55:25 -0700 (PDT) X-Received: by 10.180.99.193 with SMTP id es1mr10250739wib.29.1441918525558; Thu, 10 Sep 2015 13:55:25 -0700 (PDT) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com. [209.85.212.171]) by mx.google.com with ESMTPS id lq5si21638647wjb.170.2015.09.10.13.55.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 13:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.171 as permitted sender) client-ip=209.85.212.171; Received: by wicgb1 with SMTP id gb1so39820498wic.1 for ; Thu, 10 Sep 2015 13:55:25 -0700 (PDT) X-Received: by 10.180.90.33 with SMTP id bt1mr9823576wib.59.1441918525209; Thu, 10 Sep 2015 13:55:25 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by smtp.gmail.com with ESMTPSA id s9sm17508216wjy.16.2015.09.10.13.55.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 13:55:24 -0700 (PDT) From: Peter Griffin To: u-boot@lists.denx.de, trini@konsulko.com, sjg@chromium.org, albert.u.boot@aribaud.net Cc: Peter Griffin Subject: [PATCH v2 2/8] ARM: hikey: Add ATF makefile referenced by README Date: Thu, 10 Sep 2015 21:55:12 +0100 Message-Id: <1441918518-25629-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org> References: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rather than relying on an external URL in the README include the Makefile in the hikey directory. Signed-off-by: Peter Griffin --- board/hisilicon/hikey/build-tf.mak | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 board/hisilicon/hikey/build-tf.mak diff --git a/board/hisilicon/hikey/build-tf.mak b/board/hisilicon/hikey/build-tf.mak new file mode 100644 index 0000000..cebb34b --- /dev/null +++ b/board/hisilicon/hikey/build-tf.mak @@ -0,0 +1,42 @@ +CROSS_COMPILE := aarch64-linux-gnu- +output_dir := $(PWD)/../bin +makejobs := $(shell grep '^processor' /proc/cpuinfo | sort -u | wc -l) +makethreads := $(shell dc -e "$(makejobs) 1 + p") +make_options := GCC49_AARCH64_PREFIX=$CROSS_COMPILE \ + -j$(makethreads) -l$(makejobs) + +BL30_HIKEY := $(output_dir)/mcuimage.bin +BL33_HIKEY := $(output_dir)/u-boot-hikey.bin + +.PHONY: help +help: + @echo "**** Common Makefile ****" + @echo "example:" + @echo "make -f build-tf.mak build" + +.PHONY: have-crosscompiler +have-crosscompiler: + @echo -n "Check that $(CROSS_COMPILE)gcc is available..." + @which $(CROSS_COMPILE)gcc > /dev/null ; \ + if [ ! $$? -eq 0 ] ; then \ + echo "ERROR: cross-compiler $(CROSS_COMPILE)gcc not in PATH=$$PATH!" ; \ + echo "ABORTING." ; \ + exit 1 ; \ + else \ + echo "OK" ;\ + fi + +build: have-crosscompiler FORCE + @echo "Build TF for Hikey..." + rm -rf build/ + CROSS_COMPILE=$(CROSS_COMPILE) \ + make all fip \ + BL30=$(BL30_HIKEY) \ + BL33=$(BL33_HIKEY) \ + DEBUG=1 \ + PLAT=hikey + @echo "Copy resulting binaries..." + cp build/hikey/debug/bl1.bin $(output_dir)/bl1-hikey.bin + cp build/hikey/debug/fip.bin $(output_dir)/fip-hikey.bin + +FORCE: