From patchwork Wed Sep 9 21:13:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 53343 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 1717822B05 for ; Wed, 9 Sep 2015 21:14:07 +0000 (UTC) Received: by lagj9 with SMTP id j9sf8764539lag.0 for ; Wed, 09 Sep 2015 14:14:05 -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=JeCZF6YRqRloSPg59Xnaekd1DxAZa5jzyj7eEGD/nuBCB+LZUrV/YCbWp6iFhC24Dm 3mIFszBYiwngIS9zS4ClBQo/v8prz5lNCBDp7z+p68Hhj8AxwdH6dqN97MmH7vClpmjw 3Gti2JO6A6pATX9gfRKGyTZCTKoUKUhZmCF9oq/XVBhQiPlFzWf4Cl7BpSCema2Ams8I JIZCzzTGezQcdvdtLo4mpuwj8PJrteYa+83DogsKt5dm2ik36Xe4XoeEkyuo7BNT1FU0 HSwetkZsAYvVLW7ROwoP2yS0Na0LamTI2grSDIobfvuFtG+PZH3UszR8hCa0naB8RraB iaWw== X-Gm-Message-State: ALoCoQk0asLBCZ4nqcX2dQO0loMBuRHZ0xyDWQvYo6VL/+VdktQDEy5AHTn9wBSzLwW8D7t9i87K X-Received: by 10.180.35.132 with SMTP id h4mr5409871wij.5.1441833245757; Wed, 09 Sep 2015 14:14:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.8 with SMTP id dc8ls109884lac.12.gmail; Wed, 09 Sep 2015 14:14:05 -0700 (PDT) X-Received: by 10.152.21.37 with SMTP id s5mr27603892lae.118.1441833245527; Wed, 09 Sep 2015 14:14:05 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id b2si7933185laa.31.2015.09.09.14.14.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lagj9 with SMTP id j9so15701512lag.2 for ; Wed, 09 Sep 2015 14:14:05 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr31715515lac.106.1441833245427; Wed, 09 Sep 2015 14:14:05 -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 w3csp561064lbq; Wed, 9 Sep 2015 14:14:04 -0700 (PDT) X-Received: by 10.180.87.225 with SMTP id bb1mr61301633wib.0.1441833242846; Wed, 09 Sep 2015 14:14:02 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com. [209.85.212.174]) by mx.google.com with ESMTPS id es3si6973558wib.114.2015.09.09.14.14.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:14:02 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by wicgb1 with SMTP id gb1so1408623wic.1 for ; Wed, 09 Sep 2015 14:14:02 -0700 (PDT) X-Received: by 10.194.202.137 with SMTP id ki9mr59640053wjc.16.1441833242693; Wed, 09 Sep 2015 14:14:02 -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 p20sm5797427wie.5.2015.09.09.14.14.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 14:14:02 -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 2/8] ARM: hikey: Add ATF makefile referenced by README Date: Wed, 9 Sep 2015 22:13:49 +0100 Message-Id: <1441833235-2359-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441833235-2359-1-git-send-email-peter.griffin@linaro.org> References: <1441833235-2359-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.48 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: