From patchwork Thu Jun 20 10:07:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 672 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0EC0F3F086 for ; Thu, 20 Jun 2019 12:08:06 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id k2sf1464002pga.12 for ; Thu, 20 Jun 2019 03:08:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025284; cv=pass; d=google.com; s=arc-20160816; b=EnHXcO9gq3QN6QNCZ65ZLwV8O/jMR7M688A+scqezTadH91O3pQKw6XObSYYSpteK9 ebIA+AseQ0gXJfnJD3HgTXKn/DCnbES6FiJb9yC5+zLrgdhWjwL0lIieNy6FqRSKVojx G1RvjpFZU++Ltblle0iYsn8tFFHNqvvNeVGYW293rEohtzFmVvtC43b77AjYsdmtbOPo hi4pFBNZCDfldHIEHjRIRnKFZkFQL5Nj7tbD5JH8TIFrgGAKRZOlcjSvmhirvnAEv+t3 PC5s7101dvg0zO0J3eWZj9d9aYsAmWJRmNBWwTzWa/U7P5NP34f7CmKO9no3rIQK2iez fxHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=/KjnWNw1yxJS8s7KgBpLcRx7w98a28xTwo5S8qLabNo=; b=PGQNEuPlul0xir0F1j2URcPcuT3FUzwSDfI+/lrp4mdsRYHSeVkokK4BxXVtLIZH6U KSerPoD9hrG/fsoGor2yMVCnHTR4daU9+eldjyYjaMM6VtiX77XQilyP5exGFxM2NqEp Fptumu0eRxmNIKFknVQx3iNjdBStiADyjYbP30gkTqevNO+J6HIpocpezhSIs7/e6sqO ofbMKRvlioCOW0ET/NUrVy4MbWqYLqpm6IKbUvUkUBQtDTtfCyLvS9tpmB2/4S8DedLv MPrqg713skA6pKANfwom4b1MB2SMlDtW36lYdfTf+alnJqQyARJJRiy28GWfMlsH1ebt T35w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=meFemPTW; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=/KjnWNw1yxJS8s7KgBpLcRx7w98a28xTwo5S8qLabNo=; b=AQSkc16JHQe2CwPQK7480iyANXs5gN0hZedMGwsZAkPAElEPAFEO3Fs93pyRqiZaUh MHLZQgV6A3d94SZrAewv/ygYzrbsEG447WWo/TUdlaKbsAXZxWZHXbFJMvUvA+09a/s9 nUxESeFNEjB4UhFk78MoTCVShmydrxJNqWbt4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=/KjnWNw1yxJS8s7KgBpLcRx7w98a28xTwo5S8qLabNo=; b=PHp90jn6Dn9J84Rqx72bnWNBqcNyCyTjvD6/nw5WXVyL0qpguvlouVKA7Uy9VVXJhE pmfwclb7/yE5cyPQS3xoutAbkhCw05u3C/8X6BQ/32fUQjXqQyC88Da5xY3kRIp5WeF4 /fL1X7ffuMa7L4jYUI5U8wvU20iy4E6/LOAWvDsIYXAobdsX7LIxkstzP3pKt1tZr18Q ibeKIpm0A5gNIT/JPKb06WvMrRryeTkFf9D1RNVy/Me9Z1CzXJxNI2RMhGXMTSOhFFgl glFYDFMV/S5CJ7hZTdfmxQcZLP3b7LBvhHuZteuZa82e78d4fFi8VYiY4T3EUgv+AjHG 1fAw== X-Gm-Message-State: APjAAAVMreSvPKpSNrEjInUveiB5mMnGH839+DA9+LTJXTicrWoPNFEi GO8obUBwlCCQG7DTNJn02LicoT5t X-Google-Smtp-Source: APXvYqwVfQDv+jW9S43AGv0sFNA4v6mbnrK+DbDxWm2iyAMPar07/G4eGEFnvhdJzuiL763yA81ZUg== X-Received: by 2002:a17:902:2ba7:: with SMTP id l36mr123074466plb.334.1561025284573; Thu, 20 Jun 2019 03:08:04 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:820f:: with SMTP id x15ls1267402pln.13.gmail; Thu, 20 Jun 2019 03:08:04 -0700 (PDT) X-Received: by 2002:a17:90a:7107:: with SMTP id h7mr2244157pjk.38.1561025284232; Thu, 20 Jun 2019 03:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025284; cv=none; d=google.com; s=arc-20160816; b=095z6gWjcZvy2vRsKMasC+p9p6gwcvyMJLm4/CgrKPGi2nTrBkRJxXFeDgLBfM6N7A /J3R1CFe+haDhjULFeymyF9WZxXTR91AqTO0B+sTc3QOm29+tNOF5WCvGJEug5t2c4Qv 7CFtWZqIOD2RBR+zi2Jf2YN+Zfo4/O/PBpDY1RtF2RyD9UDV+uJ40c09dHJzxIQaBE/R 64H5M4G60qPFMjs1oYPdb2oRT2P5b8/cv67+qvIAY7Xe6GtGtaj1+lryWw3C7qad8NPX QY8+DG7OVkyj2M+oXC9dZ3GTtDnNyLcgZoRkR79TqQt+gBGVfELKxICWJhTkPzbmNojF IMSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=P1Q+D4NexqNNTDIbmFASjLUyHZ2UwrDRPpa+KPUsiiw=; b=GsYKexcoqTwfDpUB2HZIoEOC8JwTSLCMGWCOvOSRBjXCdsQ25qcRZXqJWAhionPkjp gOBirffUIFhYQQDY2eCuSmJPpEoEmVwO3qOq6sCiYAeu+wYVSgOZD/4ewSSoqOoyzU7S aKGL2707bYjPn+NjH/azoUYJa6InQNUjtGMSu32fSn3P2RU/WkCDQHrceyaehV/WoybL nl69m0U6Z9GJaEaVpNq6hxrQ5wHxtPzI7miNScLuiW28iKaNm2qpnAM34TveL8LkF/Gg awAfuJkd5BstY/2O/bf2JcqFILiUbPdex+sJIWde1xNqtkzQngl+zODxqY+QMerFOsPM HzKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=meFemPTW; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d6sor5602763pjs.23.2019.06.20.03.08.03 for (Google Transport Security); Thu, 20 Jun 2019 03:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:4803:: with SMTP id a3mr2333160pjh.58.1561025282908; Thu, 20 Jun 2019 03:08:02 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:08:02 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 1/6] Makefile: clean image.map Date: Thu, 20 Jun 2019 15:37:35 +0530 Message-Id: <20190620100740.6560-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620100740.6560-1-jagan@amarulasolutions.com> References: <20190620100740.6560-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=meFemPTW; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , binman tools for creating single image build will create image.map at the end, which has information about binman image node details. current u-boot, is unable to clean this image.map so add a command entry in clean target in Makefile. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9fba74d3ed..804eb2c652 100644 --- a/Makefile +++ b/Makefile @@ -1847,7 +1847,8 @@ clean: $(clean-dirs) -o -name modules.builtin -o -name '.tmp_*.o.*' \ -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \ - -type f -print | xargs rm -f + -type f -print | xargs rm -f \ + image.map # mrproper - Delete all generated files, including .config # From patchwork Thu Jun 20 10:07:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 673 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9737C3F086 for ; Thu, 20 Jun 2019 12:08:07 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id 145sf1668788pfv.18 for ; Thu, 20 Jun 2019 03:08:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025286; cv=pass; d=google.com; s=arc-20160816; b=O9WLZoso2JVDyf16Plgm735XxA2IVGqhJypGFifZWeCG4JGh43q3JZvjacl8IF2j51 pPKyTapI/X6TLehU2158klvq+vZxtxNAY/EBi3BG3PRdNvAOSccc/+VLa8tHynb9yleb 34X25OJe2Vu4+Ra1bDJTOWElOccEAqtusBRgFfkpsiSqltSKVngAGWQpgu6fYfrjY4ht bnMXhVSXXKX30yIAI7rV/fbGVRGJbsfHI+S28t6gEP8mnlmQt5VlswTIkwhG3aQUTAQW EDft8O/IYbYkggHRnuOAjbu2jOV5Z7YohUAkQ7xNLrq6ILKzrA59Yhl5a1DnueaxlF+H CQ3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=F+HUOfk3fF+FEfqTovOyR0yjqjBw8ja/1MpqTS70/NI=; b=RI1B37K+XKj/VMhhF9RlSayHC6TaKKL9K2arF79y7wDmsI4PTC3cgTKUsKRDBQvQ2J MM23hlG343Lo4jG8SjWDeTgIbcd3m22AykGa0bgGd9p4/4gEgv0Tgro+MOuBWAhZcZdc vFU2Vaj3ENH+xjjnqesvx/DJt8IE0J5sY+eFFNC4/ALg/DbRv6O+Y8J8E246eyOwo1hv Oa31hqV+xsu0iVdntSF5k44aCzkvC09JEwr6y7vWvgBthT5LFSf5/71brRDp3pMxSb/Z vs0FhXilXdzvW+kmyvhPTaEyAPAyESxDhKTgS3bzFhO8z4nYqYhBaoNo417QiiMzhyvI /6lA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bqblp5Xd; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=F+HUOfk3fF+FEfqTovOyR0yjqjBw8ja/1MpqTS70/NI=; b=HyNNN0nOkhKIr2kei+UquDlayhefR5751s81SXjtrbejO7utqL5xOPm2vzx+At4hHa dCIULgqY3uulpczz9gU7Dw9EzBB2t+O3xObCJpwCbdBWDtDjJHvR+dCRzmUy5ru6nEMM GGPgLqbdzxAe17Q26U+DO3Oj041pbmOfjWoUU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=F+HUOfk3fF+FEfqTovOyR0yjqjBw8ja/1MpqTS70/NI=; b=NeLKFI/ukwlLJ1z13vbRktxdww2ETbT39zbQNRPtjoYyLP3lIcrQZApEJAxXisq0x2 2dDz3HmHwX2D04RY+43wnDPvSz3b/a05UgN+WHjBf5Hiyl+ZvXKhyf83KatQsELtZC2q wbO+cPAioe3TvIcObCGOfracTqQshTs2FW1l6O37wTeYwAd2BddWxWL7H7Ws9+EXF8rm tenlhHw5MptzpL5TepSKOs/tugaNCopaywVPMkpWhSlN9E5/u3Qgi5FPos5eIRuAxepr IPDwfuKhlDuRQR+zWpZ4n9pYgRrPQBJTxKl41ataOhQPxwlvDzQW9oDrIF8mScOXz3J1 hufw== X-Gm-Message-State: APjAAAU4g4jAGoYTnW1evDj9jhoXOOD4OrovMxcqzDBwrAPGa7EX9oAC oHy08lEzSAJe/PReksnO/HbVKhCn X-Google-Smtp-Source: APXvYqycaXBImQj6QwxxsuNZ75932ZWCWccsLx1GK/YwmPFRCax2jHafOvd7CHHYvFlGjVkEHpKvyg== X-Received: by 2002:a17:902:23:: with SMTP id 32mr62651371pla.34.1561025286422; Thu, 20 Jun 2019 03:08:06 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:32d:: with SMTP id 42ls1267408pld.11.gmail; Thu, 20 Jun 2019 03:08:06 -0700 (PDT) X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr96812521plb.46.1561025285851; Thu, 20 Jun 2019 03:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025285; cv=none; d=google.com; s=arc-20160816; b=hCKOBBNH4+Nw34843SKUNeCzoC/Puez2p/IkZSU7arSEXN6KI1DOljAAcdSoECiWWh Hc1tPq2c/RhFPhtNKAuQR2YXGXfRYeUmsIBh60p2COSZE+smoSUFb5dgRLkvUCaPyS3I nTa7UvRqmNCmu1lrcaf7vJVIDCI9uoOiqt7w3s+CU2vh2g2+lL167RxlxdZlqOMbyga9 k8whG55Joy42dEeJBlp0sI3R2zLkhJOWzqUdtMmpBiAQe6+gQtbUu6XemQasZNnGzmUH UmpOxoXkoX/cx7vW3kgtXEQfcP6UljCTUJoLk7MnB6CbNGrU8eQrSL6qMRt6kw344caK PBUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SVhuJQYXib9M0BWgaROsi1M8QbxK1XXxoZLiJe0nmMI=; b=r3q4TInpfCrKYQ/CGZVpPvQ5G9XZhlEeCBLGo1Co457lZGVjZiOov0p8G/rdv6CkqE 0dUEN57ApJVLoCd3DJyRqGbd4uHrjYpf4cMcgeGgVBoV9610jeGPM1OESbFqRPAz9E5h gAy7MAxmqHHCEm2zZ6p0/g7SA1TVyTf3zB/sAlTkxcTgZNUlGoYxJdzfRm6wdx3XrDPq NFpihgZYOCCObqS6hiLQK8yoB6h/PrruUrfPqMtqnhiiNXr2UWXJF/2L7Ih9Bw3lkx9G hgzXAKXl0u0HpZXCt0LLiNdaf7b5ZIV9zQkrgY/Jtx+kD3JSJleSos/ohyLtK1sbyrh/ 9n6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bqblp5Xd; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id k5sor5626475pjt.12.2019.06.20.03.08.05 for (Google Transport Security); Thu, 20 Jun 2019 03:08:05 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:208e:: with SMTP id f14mr2277560pjg.57.1561025285535; Thu, 20 Jun 2019 03:08:05 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:08:05 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 2/6] Makefile: clean bl31_*.bin Date: Thu, 20 Jun 2019 15:37:36 +0530 Message-Id: <20190620100740.6560-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620100740.6560-1-jagan@amarulasolutions.com> References: <20190620100740.6560-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bqblp5Xd; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rockchip platform has its python script that would generate various bl31_*bin for creating u-boot.itb file by taking bl31.elf as input. These bl31_*.bin files are generated in u-boot root directory and have no rule to clean it up. so add support for it by adding in command entry of clean target in Makefile. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 804eb2c652..a503ab9fc1 100644 --- a/Makefile +++ b/Makefile @@ -1848,7 +1848,7 @@ clean: $(clean-dirs) -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \ -type f -print | xargs rm -f \ - image.map + bl31_*.bin image.map # mrproper - Delete all generated files, including .config # From patchwork Thu Jun 20 10:07:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 674 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id ABB8A3F086 for ; Thu, 20 Jun 2019 12:08:10 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id bb9sf1331525plb.2 for ; Thu, 20 Jun 2019 03:08:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025289; cv=pass; d=google.com; s=arc-20160816; b=xvuGSnmfqrXhn74ctmo9y8rJf+ZP/y3TpwgZpsUeeIM1YRiAAE685avm0F5EDgLnWi De9jAOQRkWO4DcpIPWSjyY1Ca86Tx3UGHsk17tD5HvYUUohMdsItYZvToXUuTlwtOQpI IK73QAt1blyw8kpS8l6XEGmBjm960VGBEQ/fz3WYWVXhJqEv0PcYPO79ozKQ8Po2EATx rEFJWmIbHhG660sm7nujoUEDLw+iEOzU6UQx5d2jfOI2OKn+sRhEpPXXSuZTGlRsxYkB 0pylEMAzilcfxH4BQnS1xJLFhj/gNO50BYpekxeiFI2evhq33W3NY93Hk5UCvSnfpDvc EAdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=+0DbBBQTBZEZ8LYEovuzFwiuDNfVeB1QSfaW4Haf8MU=; b=PgJCCT2fC+dXFKRNsJGI9pDb/qEd9SZNmKnAnNDiHWoXL/QmutpJ84yCShnbbYsyv/ gnfk+jc3W5pSUS7bqs8denKdAmJduccW2Q/hdh1xDUKv4BzbjY4Hp7Nvqc0vZqSe1TFG 0/KclObULvBLfgMBCsuQti/3/CWCjvgFEu1eLHDA/kZaFhnxkGx4z9YSuSZ8PAeLcv5J cHpxy5TKP1fmeB6MdDciiS/KuUw/BZj9TimCSYib0A9qBLEqtb3MEkoujAJGVmnBzdOt sZCx4hNwB3HcwQtq7w7zhq4j1Ek3oJqG/CH3jOl1bOpIumceyBGHY6R2AwvvDzjnDI/B 145g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YoQDxqYh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=+0DbBBQTBZEZ8LYEovuzFwiuDNfVeB1QSfaW4Haf8MU=; b=MzdFPqgm5HN5Wh0HxqpRI7kJORy1zDt8A0YLW1zOJ+rhEacf9/KqX31Gh/Uwp5gWGI HnHp1y5EZpndxgTRJT+jNJTSKnS54QyDwk+44x0ZHyChUgb9XSJuybcqVnCqTzwB6oDp rfCjEeLvSDar3hqbxnjlP8XXlvRT/K7lbsc+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=+0DbBBQTBZEZ8LYEovuzFwiuDNfVeB1QSfaW4Haf8MU=; b=R2Szn4GT3Jw/XG5Vt0l4PwtioT1azZpXMyjvM1A7APaOBmC1vP2j0UiPldgwQsc0xV KBDOaukQmCUgJ+FdtMu6/x0jaNc1udEfIkEEZ4zwSWJP5zIjlt1J+TOVI7oXEPQVaU18 JjYhbZ1JlWPg3Tp6NbdDlr7hf2/LR8lkcXybnq0I3IKG7ukqhpA0Uz1h04YSNWhdeCd6 cHnOAUXWGlPjwfHmoFs5fVQS/yRQML7ysEDbgUFY0QmjaA8cCJRa0uBD7gI7DhH8F2f7 LcV45YOOskVlgG+7ZGD7fabHieMYAzIFwFGaCIxtvhwgFbw7VhQhOUhDv30B5lFHeagi t/pA== X-Gm-Message-State: APjAAAULm7Yk+CirbAumQQADO8A1h1dNNree0w7GSEAl9UY4DTBY9kck 0w+Ikyha1KCUZUPSfMIDAHZSPl1L X-Google-Smtp-Source: APXvYqxPcEY0LgDbYCyYQ2EV1lXDC2wA4I9ycfUiD9vQ28RSDXczDE6WyibOk8sg5etdJIca2fB4Ug== X-Received: by 2002:a17:902:b202:: with SMTP id t2mr120809599plr.69.1561025289017; Thu, 20 Jun 2019 03:08:09 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8e41:: with SMTP id d1ls1222795pfr.13.gmail; Thu, 20 Jun 2019 03:08:08 -0700 (PDT) X-Received: by 2002:aa7:9a01:: with SMTP id w1mr105336418pfj.262.1561025288671; Thu, 20 Jun 2019 03:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025288; cv=none; d=google.com; s=arc-20160816; b=KKrrjIzP1P/htPl5bjoc8RUS9EzsZ1B1BypvXW3bufDyzBZlnYplBFyEWgjXykH4ue XzjxkjlGBa2rO2j3fDZf//iln4cFWdNxurxfQNnK+/EFIfyE8y8+T0ywI2HjGBTvvz9k v8wxiFmWqkkkSU4roRcrlfS58sGgQx1LfDsEkC65J/xzrVXRrKmkb6M+eagnOPy93tR4 nkg1qozYNMV6fACWbFJMVBXpc8rtqQVut1c+DcXI2ZAgmydaOktUlYNbynw1L9SE4uUb QV+5a8xSwm3M/xa8YyTFOqVcQmi4nlmrc7tkkQPFZjhQSl25+D0rloTZsVjtkChgZndM jevw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=w5i2VSUzQkRVcoB9lCAN8b89i0Y9O4o5VEZfaAnhAlg=; b=SzYMs/JGJ4fOtCNDhzlDWaJ13+gBL1sL/WRkrUN5vS7Xj9cUScm+TwTK6KY3UiSIFz rnkOSkhp0imQs0kanQ14Kk6YZV4Utdopm7FobmyyWKkUlTXYHgAxLPx2FsqP4IZUedXO 1nzg9lEcWjXOuSBAmdyZf3i8VMzvO3T2Vy02FVpyfl12n7J34hcJq2U4uvoBVtjRy1fR 0/i3O9JZiyfcNTHpGQtph4yguYNGD/TrYcfNqjjWZWtlAS3JIY6wv7ATDXY6j0jcJaHZ raJR/3WBl31H3hsLFY6goXhHNkixuc2PHevGRWfaEriPzSFphrflqMxnTxDzXnCufU5s 0wKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YoQDxqYh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m37sor24894924pla.6.2019.06.20.03.08.08 for (Google Transport Security); Thu, 20 Jun 2019 03:08:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr2236868pjp.47.1561025288338; Thu, 20 Jun 2019 03:08:08 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.08.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:08:07 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 3/6] travis.yml: Add pyelftools install entry Date: Thu, 20 Jun 2019 15:37:37 +0530 Message-Id: <20190620100740.6560-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620100740.6560-1-jagan@amarulasolutions.com> References: <20190620100740.6560-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YoQDxqYh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Currently rockchip platform is using explicit 'make u-boot.itb' for building u-boot.itb but if we enable CONFIG_BUILD_TARGET as 'u-boot.itb' then the resulting u-boot.itb directly will create by make. But, that indeed make travis build fail since it require python-pyelftools host package. So add pyelftools install entry as 'pip install pyelftools', this would create pyelftools on travis host which are required to build rk3399 itb. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 8bd49ef1a5..94b795ef21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,6 +50,7 @@ install: - . /tmp/venv/bin/activate - pip install pytest==2.8.7 - pip install python-subunit + - pip install pyelftools - grub-mkimage -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd - grub-mkimage -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd - mkdir ~/grub2-arm From patchwork Thu Jun 20 10:07:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 675 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E5F283F086 for ; Thu, 20 Jun 2019 12:08:12 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id o6sf1294991plk.23 for ; Thu, 20 Jun 2019 03:08:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025291; cv=pass; d=google.com; s=arc-20160816; b=Nua0Do6fMEkJIIaK9OQjf6JoeNuKJt6hcpUZ1hBsVlTvCAazX8NIxJaIZY6GkUBmuw NLZfmsPyno60NA8z1tMQFfsC9jBLPb/3jcUtc1G+CD9KVenVjNE8C02nWuk1qsxNeHs8 7C+aVkwZpQWC0md9Ly0RPsPsFSPw56aAj2ox9sUO54lb/N6jHqMryCcFjSkqA8dXMQET o7pBi26J43aRKaGQcqrOIRacLrOn7oeltiBqsorWqvnZqOqEO7tCo/De2AuTggo9MbHv FfAN9URz/nmzoKUYP7twSDrTHH7UXtZuwXXNUPCTYPqBlAtYigpaArt1p/65tWQzlnxF uJyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SMUMbyn6ACMSDBXfldicVizMeQAGI7b0FFIc3Il5gF4=; b=bE1syV5H1/K584AXfLY0huNLsUPxQEZaV7HqXhpA4JpvLOiALR3wBDqj5aodp+C74t J1vkL8quX4nPYNAYb3QylWOv+uJ8OlcKMpf3JuX1L9Fxvzdl+UrkCeDIWBlArHWZr557 j4aE6TJdF+IEakNNe/jS8ih9WuIiDmkRCgHpRvjCOEa6dV/nXYGfWhiqmRiGnKSIRv4N sSZoVOOojl9dgqJuR5OdGXCdisY8l6QUHk4nAs512XfyfCvWqwtpImkYv/DiHETUTlUP gYIPzn1J89Lu2lvouNg8DFAzoob8HPvTueJDl/YqZKKCIMoFKyh3CNVk+oUZEi5c48mA 95+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Pdt2lpRs; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=SMUMbyn6ACMSDBXfldicVizMeQAGI7b0FFIc3Il5gF4=; b=Y6pSxq8lKSyjNh2/+JtprcpQTC2k9mGj6L3RcqAx4SpbslU80zL0F2Y0BXaMlFkG90 /MFaQhHT01ZAgxI3MMciXQ5+meM+LuGGCQ5t262qNiFZ9duRD6767gl3P20EDo2ubyOq 6rW2Cf8qXZA9vStBo3gMcQW0lGt5PQp+e52Xk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=SMUMbyn6ACMSDBXfldicVizMeQAGI7b0FFIc3Il5gF4=; b=YTCAlGRXMhQ73gAEk8bLtzhWtSdjcuTJBLqTDaXzUSLtL5lby0Q5OPVuzfRAOKgmXx IXh93PVe/p19s5Q3/TJ4BQVruuoh+AWW59ZDCeasTmvmxkU3WGe4+Vl5qTSYedOfz8Qv rYEDrrJUMjKqFlXtlhQLIsR7k1OLwNLi92BnjyudAlqLN2ebtnOc/fYd9tM2V10MdbK1 qnagcXr0smGZdY8phdZozSz9S6ai4L7McStN8gUEvVByPreUQl654JfY/gptDgKmPeEO WCC8gmGPJqa8ZBA67tqJi6iyTr49BmuhryNSjvESNquOUfDAgoGkalR3nCx2Rtyv2gpj lMQA== X-Gm-Message-State: APjAAAWTiDZcBnlYa9Skk22vNkQm/7ycUfa13k3iYaMb9Hb1e2N6/pRT J++oK30bTAmIe/cmhqWUpobrzF+f X-Google-Smtp-Source: APXvYqyhr+tuhiGEuXKyAlwewhPGSzYwvIqorNxiuXocGe66m26cDk0/aBG2q9wsmrdXkCwd4v/avQ== X-Received: by 2002:a62:5105:: with SMTP id f5mr130189801pfb.127.1561025291719; Thu, 20 Jun 2019 03:08:11 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:fe03:: with SMTP id p3ls1108095pgh.8.gmail; Thu, 20 Jun 2019 03:08:11 -0700 (PDT) X-Received: by 2002:a65:4cce:: with SMTP id n14mr12193730pgt.246.1561025291323; Thu, 20 Jun 2019 03:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025291; cv=none; d=google.com; s=arc-20160816; b=zDfNetMSbxXOftxoMPThx+hdRUSQ/kwr6NFQwsiscL+280O0UwDj4HeMDMvJUy9HCe qfIXHLuq9MSfB4MH/MCcAgl3f13tbsRg3I4i8bCoMQYgBZCLsMTscyPL4A9WhvwY+F1M rPNH3CIMtHNzo+hBcAnb+13MMOJiRO7SZoDEBnQE95KLVrp18fXFDYOX8wG4iie3DxlC ALyYcRDESUK72G7HeU30HdbLg4NBX4b1VOBSVB4DIdjc8ydOMXhkSXQ/8MQoX4OWSuhY /tXYo9SFxlhj7f/s/+NSpFTavj8vHxdCWHiJE2qohDZO3gtJNWjRbugWb38LU4rtkbZN X2cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zttVe370+yU3kJRF5UVZnOomEKxVsOXxlVp69LiFmYw=; b=mQKJru+c73wZ0E3cXinKiaYRx1FTabWJJDsQ+tbuU2zu09R7EOA7A4IaIFafGoD1pB GLTTgxydTlScShfoW8mgwdBanAfo07zJ3gLnrmR7kC14OJ/lO41opkxxKUnFNvDJ9Hzt TvIK34FM8caLqdg6m9bs6/+aZJuC092tz2pgZlftgDfXuBv1Ed770cG3X12WWRKVohMN CG62JYeQ5kdWOyPLoSJHWSVfq7xzoFdGpnfuqEvHH+/ZbV1sHNxEGck1iKPgdX9UzeRr Ny03t8xtxHAG3IOpSYPDxC3tHF4vIT2raNvF/LDGjtzqx32FgDO0eVc8OeINvH00X/IU LRow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Pdt2lpRs; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j21sor6867677pfr.2.2019.06.20.03.08.11 for (Google Transport Security); Thu, 20 Jun 2019 03:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:b40a:: with SMTP id h10mr131422396pfn.216.1561025290988; Thu, 20 Jun 2019 03:08:10 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.08.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:08:10 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 4/6] rockchip: rk3399: Get bl31.elf via BL31 Date: Thu, 20 Jun 2019 15:37:38 +0530 Message-Id: <20190620100740.6560-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620100740.6560-1-jagan@amarulasolutions.com> References: <20190620100740.6560-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Pdt2lpRs; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Right now rockchip platform need to copy bl31.elf into u-boot source directory to make use of building u-boot.itb. So, add environment variable BL31 like Allwinner SoC so-that the bl31.elf would available via BL31. If the builds are not exporting BL31 env, the make_fit_atf.py explicitly create dummy bl31.elf in u-boot root directory to satisfy travis builds and it will show the warning on console as WARNING: BL31 file bl31.elf NOT found, resulting binary is non-functional WARNING: Please read Building section in doc/README.rockchip Note, that the dummy bl31 files were created during not exporting BL31 case would be removed via clean target in Makefile. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 2 +- arch/arm/mach-rockchip/make_fit_atf.py | 20 ++++++++++++++++++-- doc/README.rockchip | 4 ++-- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a503ab9fc1..3ede10ff68 100644 --- a/Makefile +++ b/Makefile @@ -1848,7 +1848,7 @@ clean: $(clean-dirs) -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \ -type f -print | xargs rm -f \ - bl31_*.bin image.map + bl31.c bl31.elf bl31_*.bin image.map # mrproper - Delete all generated files, including .config # diff --git a/arch/arm/mach-rockchip/make_fit_atf.py b/arch/arm/mach-rockchip/make_fit_atf.py index 212bd0a854..e7d3846a13 100755 --- a/arch/arm/mach-rockchip/make_fit_atf.py +++ b/arch/arm/mach-rockchip/make_fit_atf.py @@ -12,6 +12,7 @@ import os import sys import getopt +import logging # pip install pyelftools from elftools.elf.elffile import ELFFile @@ -89,13 +90,17 @@ def append_conf_section(file, cnt, dtname, segments): file.write('\t\tconfig_%d {\n' % cnt) file.write('\t\t\tdescription = "%s";\n' % dtname) file.write('\t\t\tfirmware = "atf_1";\n') - file.write('\t\t\tloadables = "uboot",') + file.write('\t\t\tloadables = "uboot"') + if segments != 0: + file.write(',') for i in range(1, segments): file.write('"atf_%d"' % (i)) if i != (segments - 1): file.write(',') else: file.write(';\n') + if segments == 0: + file.write(';\n') file.write('\t\t\tfdt = "fdt_1";\n') file.write('\t\t};\n') file.write('\n') @@ -171,8 +176,19 @@ def generate_atf_binary(bl31_file_name): def main(): uboot_elf = "./u-boot" - bl31_elf = "./bl31.elf" + bl31_elf = os.path.isfile("./bl31.elf") fit_its = sys.stdout + if bl31_elf: + bl31_elf = "./bl31.elf" + elif "BL31" in os.environ: + bl31_elf=os.getenv("BL31"); + else: + os.system("echo 'int main(){}' > bl31.c") + os.system("${CROSS_COMPILE}gcc -c bl31.c -o bl31.elf") + bl31_elf = "./bl31.elf" + logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG) + logging.warning(' BL31 file bl31.elf NOT found, resulting binary is non-functional') + logging.warning(' Please read Building section in doc/README.rockchip') opts, args = getopt.getopt(sys.argv[1:], "o:u:b:h") for opt, val in opts: diff --git a/doc/README.rockchip b/doc/README.rockchip index 264f7e4994..5680c075fa 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -149,8 +149,8 @@ For example: => make realclean => make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 - (copy bl31.elf into U-Boot root dir) - => cp build/rk3399/release/bl31/bl31.elf /path/to/u-boot + (export bl31.elf) + => export BL31=/path/to/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf - Compile PMU M0 firmware From patchwork Thu Jun 20 10:07:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 676 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AAF653F086 for ; Thu, 20 Jun 2019 12:08:15 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id g9sf1455392pgd.17 for ; Thu, 20 Jun 2019 03:08:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025294; cv=pass; d=google.com; s=arc-20160816; b=nTxfdVMWTSCxCqCVJ90FU2cQm68qffaoR/Z/Kc/OhkcerJoQ4ZB/hctOH/XxAEw87a tYhyqockk51IB45UztE81kqxtWcAoivN94ZK3NoQYzTa5fZzUQSwu8abTNq3Q+VLrbNK u+CC8GQ/gXIHVxf8M85NCcUbyzZgrml7nq7DUnmwpw6q39dFascTDyo+DCsI8V3IZTpY /f6w2/h8WneGUfUXiZWpEqxkOopfK1fUq4uGC4yicL3bzUIoFw4rmSSBQ+yM3cInRv6j IUNjo4Ey4zMy+295+fGuM/L7J7s4kijsNNIRHVENT8dBMRaJEDXGz9p++DDRiAP96+0J oHtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mR2al1b3q/qEEfL60MOOCz1aBs3pkDqBw5hr0/P/uGs=; b=qkYl0KsEpiuBoTh7JaZyFoJgMJQvg0rIISgdX2U2PIM1ALX5wiCDq5bhM0/h8CBu+8 B2A6yxIC06WfeEt3BQq7vOCS9rcq5GJ79bpFVYIrcMTXGjIVoAzUMXq+qnSo0AU1S4qG rFT1Zy6EFkPCNB18SYcAjVIDaev6aj0ROd/Nsy4th8bVG6ovAEExPXNQDn0edYZbFhEr SHCmOU+W/2kYwdzK17JAcW+77dvH3hC/QzcuYevl2K+CjCXOFQUdvlBAlWtaY8ZSC3uE JGpd8lARWoMEPae113JB23RV0Ch5QzTXjeiUWZcJKek40Ri788pO4VqI102YMRz8M645 KelA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DbHY1y1t; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=mR2al1b3q/qEEfL60MOOCz1aBs3pkDqBw5hr0/P/uGs=; b=cZT8FvP1I7ntsyVBK9JOhVtfx+s1OmyQfu7KYqTV4uWa18PGKMnesvRNg/MK8NnDq2 9gX7Deqoj6vG5BgkgA/fVGp7eu41MH0JDI5qrFN1RrZMnL8ZytHxRHF4Us6j4lD2peW5 zkNl/SLfAzlMHPlMJdgCEg3FF8qWzMI4Qym/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=mR2al1b3q/qEEfL60MOOCz1aBs3pkDqBw5hr0/P/uGs=; b=SmxgzATjQkCDUPWJ4UDzlk4XhM6Nw1velzs443pFPaYgBwQEErX7zm6Vqi4hxxR6HN GYB1viWJPeezSIXwEij1C5cJTWQm9v3JyAc3dJS1tSYVu8vkkzRVkmha3cHzQ7f4nGCg xGqi59GiY5B+zUdCoe0Yc4EHt4FYUoxo4nywc07eLTSpv7POC2EZZj63ZrRsjubTWYyC uJJGKtCCYLx0B7Ma0Zg0nJqOHrRuZLbMfQ5f55E+Tflynt+pf+kW7PQ3jnQHL9WUmuJC 7Gic6Znd7k5MyL2Xj4cO/GYLE4DAjnVwiASdhuWVaVQNy7PSRcyUdtExDm1d6YnfIiRS pOiA== X-Gm-Message-State: APjAAAU4SoVDqCQnnIpQPGu0S1x79WHz5h5MK7rd1mE++g9ojeXAWN9t J1D8UNhGFQnMOlpVi6feOqxTp5QL X-Google-Smtp-Source: APXvYqzEGSpdFtmhMzZIMpFGyRnwoVs/FQOqdKPLoNbLNRCZsx38mNQxfiO2AsnyO9V3WRSSVsNhZw== X-Received: by 2002:a63:1c09:: with SMTP id c9mr2634412pgc.63.1561025294470; Thu, 20 Jun 2019 03:08:14 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:243:: with SMTP id 64ls1109357pgc.15.gmail; Thu, 20 Jun 2019 03:08:14 -0700 (PDT) X-Received: by 2002:a62:6844:: with SMTP id d65mr130707237pfc.175.1561025294039; Thu, 20 Jun 2019 03:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025294; cv=none; d=google.com; s=arc-20160816; b=Lx81y2VzOQqpwiwf75qB387fLiIhs+R+KULKM9oDBW8E0UVhh9AuMMPtr91+P5yfb0 x2xBK7rb/PZobYPNmJk9xTlF4CXMzz4mbRRld3gDP27KDtr1GH8Ea6APCGM6hb50aFX3 e3ke94reLiUsTg9xX2s5+zr2jJoJ8xluF3EV9NGV67AW4tOjgy+lBjjtz2WBlJ9cse/D cvupGikBrDQ6gWQxw1hnBItOGlSYugsSfEQvQXTTwedI3Ik3r72Er24D+dD6ACQupNrA tz61MLBd+kT7pqqW7/aT2eYTjl28dc+hlchswpYgLYzqA6Jce6mXn16GMM7tbgA/m9x/ wkbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=WyK+VrPSIT7CeTUpydw/eTXwdpjjMnF6cxvPbpeUd8I=; b=u8tCAOiQVpG/aLE9O0X83LwefU+XWoF02U4uG6M1kNiSkE4j1EIkAB1zB3WXRTK+Q2 pIYaMm4jpQbLIQmhtTVAY/bv438gZWB7mZc6UQMcCG7ak13W/CLnTiC65OA8VWTnrf24 PGVLOe4Xd2vOEJPFCq0PGNuzM9UOACC1syHoIvwNgdehIvjMgYhsz8QACRNy2lh5RFO7 ywF5fnGDGAetiC6TaZzoiJfld/6GcHKa+gRyZMFOgqyOgFtes4e9PmfrWOUMJjZ1eT9T NtlUtLF8BMdjbykMTku8phISJkzyyHO1lI0HggJv7QGwtrotJ3Z9/dojis/CxddCEVoX LcAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DbHY1y1t; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t6sor16556621plo.20.2019.06.20.03.08.14 for (Google Transport Security); Thu, 20 Jun 2019 03:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:aa83:: with SMTP id d3mr99901332plr.74.1561025293687; Thu, 20 Jun 2019 03:08:13 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:08:13 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 5/6] board: puma: Get bl31.bin via BL31 and rk3399m0.bin via PMUM0 Date: Thu, 20 Jun 2019 15:37:39 +0530 Message-Id: <20190620100740.6560-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620100740.6560-1-jagan@amarulasolutions.com> References: <20190620100740.6560-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DbHY1y1t; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Right now puma rk3399 board need to copy bl31-rk3399.bin and rk3399m0.bin into u-boot source directory to make use of building u-boot.itb. So, add environment variable - BL31 for bl31.bin (instead of bl31-rk3399.bin to compatible with other platform BL31 env) - PMUM0 for rk3399m0.bin If the builds are not exporting BL31, PMUM0 env, the fit_spl_atf.sh will notify with warning about which document to refer for more information like this: WARNING: BL31 file bl31.bin NOT found, resulting binary is non-functional Please read Building section in doc/README.rockchip WARNING: PMUM0 file rk3399m0.bin NOT found, resulting binary is non-functional Please read Building section in doc/README.rockchip Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- .../puma_rk3399/fit_spl_atf.its | 58 ------------ .../puma_rk3399/fit_spl_atf.sh | 94 +++++++++++++++++++ configs/puma-rk3399_defconfig | 2 +- doc/README.rockchip | 8 +- 4 files changed, 99 insertions(+), 63 deletions(-) delete mode 100644 board/theobroma-systems/puma_rk3399/fit_spl_atf.its create mode 100755 board/theobroma-systems/puma_rk3399/fit_spl_atf.sh diff --git a/board/theobroma-systems/puma_rk3399/fit_spl_atf.its b/board/theobroma-systems/puma_rk3399/fit_spl_atf.its deleted file mode 100644 index 530f059f3d..0000000000 --- a/board/theobroma-systems/puma_rk3399/fit_spl_atf.its +++ /dev/null @@ -1,58 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR X11 */ -/* - * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH - * - * Minimal dts for a SPL FIT image payload. - */ - -/dts-v1/; - -/ { - description = "FIT image with U-Boot proper, ATF bl31, M0 Firmware, DTB"; - #address-cells = <1>; - - images { - uboot { - description = "U-Boot (64-bit)"; - data = /incbin/("../../../u-boot-nodtb.bin"); - type = "standalone"; - os = "U-Boot"; - arch = "arm64"; - compression = "none"; - load = <0x00200000>; - }; - atf { - description = "ARM Trusted Firmware"; - data = /incbin/("../../../bl31-rk3399.bin"); - type = "firmware"; - arch = "arm64"; - os = "arm-trusted-firmware"; - compression = "none"; - load = <0x1000>; - entry = <0x1000>; - }; - pmu { - description = "Cortex-M0 firmware"; - data = /incbin/("../../../rk3399m0.bin"); - type = "pmu-firmware"; - compression = "none"; - load = <0x180000>; - }; - fdt { - description = "RK3399-Q7 (Puma) flat device-tree"; - data = /incbin/("../../../u-boot.dtb"); - type = "flat_dt"; - compression = "none"; - }; - }; - - configurations { - default = "conf"; - conf { - description = "Theobroma Systems RK3399-Q7 (Puma) SoM"; - firmware = "atf"; - loadables = "uboot", "pmu"; - fdt = "fdt"; - }; - }; -}; diff --git a/board/theobroma-systems/puma_rk3399/fit_spl_atf.sh b/board/theobroma-systems/puma_rk3399/fit_spl_atf.sh new file mode 100755 index 0000000000..420e7daf4c --- /dev/null +++ b/board/theobroma-systems/puma_rk3399/fit_spl_atf.sh @@ -0,0 +1,94 @@ +#!/bin/sh +# +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2019 Jagan Teki +# +# Based on the board/sunxi/mksunxi_fit_atf.sh +# +# Script to generate FIT image source for 64-bit puma boards with +# U-Boot proper, ATF, PMU firmware and devicetree. +# +# usage: $0 [ [&2 + echo "Please read Building section in doc/README.rockchip" >&2 + BL31=/dev/null +fi + +[ -z "$PMUM0" ] && PMUM0="rk3399m0.bin" + +if [ ! -f $PMUM0 ]; then + echo "WARNING: PMUM0 file $PMUM0 NOT found, resulting binary is non-functional" >&2 + echo "Please read Building section in doc/README.rockchip" >&2 + PMUM0=/dev/null +fi + +cat << __HEADER_EOF +/* SPDX-License-Identifier: GPL-2.0+ OR X11 */ +/* + * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH + * + * Minimal dts for a SPL FIT image payload. + */ + +/dts-v1/; + +/ { + description = "FIT image with U-Boot proper, ATF bl31, M0 Firmware, DTB"; + #address-cells = <1>; + + images { + uboot { + description = "U-Boot (64-bit)"; + data = /incbin/("u-boot-nodtb.bin"); + type = "standalone"; + arch = "arm64"; + compression = "none"; + load = <0x4a000000>; + }; + atf { + description = "ARM Trusted Firmware"; + data = /incbin/("$BL31"); + type = "firmware"; + arch = "arm64"; + os = "arm-trusted-firmware"; + compression = "none"; + load = <0x1000>; + entry = <0x1000>; + }; + pmu { + description = "Cortex-M0 firmware"; + data = /incbin/("$PMUM0"); + type = "pmu-firmware"; + compression = "none"; + load = <0x180000>; + }; + fdt { + description = "RK3399-Q7 (Puma) flat device-tree"; + data = /incbin/("u-boot.dtb"); + type = "flat_dt"; + compression = "none"; + }; +__HEADER_EOF + +cat << __CONF_HEADER_EOF + }; + + configurations { + default = "conf"; + conf { + description = "Theobroma Systems RK3399-Q7 (Puma) SoM"; + firmware = "atf"; + loadables = "uboot", "pmu"; + fdt = "fdt"; + }; +__CONF_HEADER_EOF + +cat << __ITS_EOF + }; +}; +__ITS_EOF diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig index 03f0bfdb59..ebc78fb216 100644 --- a/configs/puma-rk3399_defconfig +++ b/configs/puma-rk3399_defconfig @@ -15,7 +15,7 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y -CONFIG_SPL_FIT_SOURCE="board/theobroma-systems/puma_rk3399/fit_spl_atf.its" +CONFIG_SPL_FIT_GENERATOR="board/theobroma-systems/puma_rk3399/fit_spl_atf.sh" CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-puma-haikou.dtb" CONFIG_MISC_INIT_R=y # CONFIG_DISPLAY_CPUINFO is not set diff --git a/doc/README.rockchip b/doc/README.rockchip index 5680c075fa..0ee54cd00e 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -137,8 +137,8 @@ For example: => cd arm-trusted-firmware => make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31 - (copy bl31.bin into U-Boot root dir) - => cp build/rk3399/release/bl31/bl31.bin /path/to/u-boot/bl31-rk3399.bin + (export bl31.bin) + => export BL31=/path/to/arm-trusted-firmware/build/rk3399/release/bl31/bl31.bin For rest of rk3399 boards. @@ -162,8 +162,8 @@ For example: (export cross compiler path for Cortex-M0 PMU) => make CROSS_COMPILE=arm-cortex_m0-eabi- - (copy rk3399m0.bin into U-Boot root dir) - => cp rk3399m0.bin /path/to/u-boot + (export rk3399m0.bin) + => export PMUM0=/path/to/rk3399-cortex-m0/rk3399m0.bin - Compile U-Boot From patchwork Thu Jun 20 10:07:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 677 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7987E3F086 for ; Thu, 20 Jun 2019 12:08:18 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id b10sf1446669pgb.22 for ; Thu, 20 Jun 2019 03:08:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025297; cv=pass; d=google.com; s=arc-20160816; b=kv0HjToq5pMlYmPhBFB36FwINUZPN4QuFuQd5L0fdwR3LdXMMKqwYQqXUZR5CooUe6 85DDMpCPEjWUb5w0u6aP2Ipf50gy22V/K1a8awQ6hqE2rh9+472yIapTLm3KytOUW08f l19Stn7kuA4uyN3jQNqXJcM21q77QhBB0cuhXZL8bsWw0MMXfwLmIVsSXIdyIR8X/C6T u8b0V5oAWlj8kYIWagfb/snbkYsy5sLD7vLIbyj55eHtcQx8ZgTZLlxYqwQUaxrucj8w YZztHiKS2bljTjDTs1koVVSoox7ZtkE/VRqlJTjbA6CY8WAedZaInYQl3ZzHFkxq8TZt sSgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=4ijjCteDZs/Y96Wt02+aLl8/A0zmxZtccDn1ax/CUoQ=; b=xd6MXdAIv+3MhfLw4hX/+AbHp5yhZ2Qk3qb45XM9cC9Ty/lyx4AT2tktJtAPaCnIhp oiUd5SOr9nVoRLtlIyY7a/OeX84ojawavos3jOoImoxd8osSPjRITN7bRrPb96sISF1d ibLRYk6iFtabqFsmK7F+ph0d+a39aWBUsX3EyL4AEqBZGg+unU4uRq8KLXANerNd3d3G vZu6xhboHFn40rpItUIy902q07SUTeaejDd0Uz7dgbG+w0Vle56yCHD2perAizZCSF7X NtI6OLz1oS6WLW4SzZqb4J43ecBD+fAV+tOiV1c9QqO+a31PjVjcll5mClbagHfBpDww w8kQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RURLjpaY; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=4ijjCteDZs/Y96Wt02+aLl8/A0zmxZtccDn1ax/CUoQ=; b=Eo7ryxLbDu/FJ1GdbSluMhpiahsPmIR4Avu1kDeFF2Ilu6UxZINjgzVSdufmxU/9wq U99rUJ7Y9ZC4ux1pesTZHmzP1lLTKuhDpSf5tuc7bOI5HoHzJW7NFgJOVriViGP75OKG mmraGmxeRaLTyLaa6+YGA5xg1mzSIvngttBL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=4ijjCteDZs/Y96Wt02+aLl8/A0zmxZtccDn1ax/CUoQ=; b=cKYJ5VoWkcxIyVBh4H/S31/9rMtOj9owsuqcA4zlx05o5qHp9DTsY5/7fB97XN+sjx mNgSq4y89RFsY/eF5EDejI//GmAYoZmslebbOFQN6ncC5mG/Dl+UYehC2jY/tvwZcjmX SI5g+29G7ylpG++VlgeHL15tdIuKpZk5ZPnwL+2KFTeBFYzK6Q0wDa+2VyA8HYkKxT5t P0bGIEAL3pweXqMRREU58rEe0Ikdq7PTydH7bDKhvX1DXPz70WU5Po3Nxr0KQjag+PeZ VEB+HSomMAlXmTV/XmTf2x5hEprU+21LDbl5avGuYQydsMYnD3hQW1SP3+9xZGlrC6Pp 0Z0A== X-Gm-Message-State: APjAAAW7zhqMtSr7ibUiRgnD2j86Bk7AEXYtc9zDoOIgo61+oV/GDsNN +hDVdHLh3ikAqrbeXPd6PdKjFvTl X-Google-Smtp-Source: APXvYqzn3K/olB0Kwc628R1Wa8nV0r5hAXS7Pt60gOs8sRVWcoJAYCisX7YebRiAZzi57CPuWYZO0Q== X-Received: by 2002:a65:5889:: with SMTP id d9mr11983205pgu.39.1561025297222; Thu, 20 Jun 2019 03:08:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:75ce:: with SMTP id q197ls1228680pfc.3.gmail; Thu, 20 Jun 2019 03:08:16 -0700 (PDT) X-Received: by 2002:a65:514a:: with SMTP id g10mr12114008pgq.328.1561025296744; Thu, 20 Jun 2019 03:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025296; cv=none; d=google.com; s=arc-20160816; b=pGoZ9p17hxHB/SBM70QWlQPCS1THE6/XKdlFZr+mynu1gFAJq0+e5gCawQtM01Ooif 9iNbGT1/Uyg8XrpNi4Z3OuAe5ikduo/d4clXgdCR/++Erqk4/usAzPBKGGauP3qYf65v 46lXPO0qv2BPfhxmHuURqW/kxSVhLiSwJ+iZZMl2+BGPSAKYSmQWQ2+x9PtWbIgku3vc mBI7T+UXrqZEropP35k3zCmJxMNQZtA6AepcXDG35x7Nth2UHL4TPWVAQ5r//7bY2bee 9VXTBbqXLRhHgl8TD1dH1FiX/TzbqWatwVHG/mvCzATqaJm+0lqaaK6jo9DC/HbEUIgX 62kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wVJfdIxX3AOWESls8BSNG7FiUmX2vaUpDqCE9rqexDM=; b=xeLHbEXfiEJqSOzWXzoy277gTxQrDJZ+L8bPOIi8eAWkBehHsZvG1u/kFcWsY+1RPs cHDLsdlgoOW/r/pBNFIhAMfCCvgiQOoPgJKdVhFRwIEMunj0NgBoY29Lq9peqLzrSekk 1K2XpL2fSsVscGbysmnxapHAMjyUnRIDsBwZw3vqfRJxXsF7tQikSuqNbkzWl+GoTkcE 5qDNNtjqI2E+bJbToT5laAzWeqjnc5zT61x75mCVytXNYkOnSOq5luI+MvlLFzkNO33i QKq2EIxdXpWFtWjo38Q+10kitI1Xgl1vC6b620TZcHPwU7awcCrjzC+UkAhDITEWfhRA GmnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RURLjpaY; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r3sor18521282pgv.46.2019.06.20.03.08.16 for (Google Transport Security); Thu, 20 Jun 2019 03:08:16 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:1723:: with SMTP id x35mr7776901pgl.233.1561025296366; Thu, 20 Jun 2019 03:08:16 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.08.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:08:15 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 6/6] Kconfig: Add u-boot.itb BUILD_TARGET for Rockchip Date: Thu, 20 Jun 2019 15:37:40 +0530 Message-Id: <20190620100740.6560-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620100740.6560-1-jagan@amarulasolutions.com> References: <20190620100740.6560-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RURLjpaY; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add u-boot.itb BUILD_TARGET for Rockchip platform when SPL_LOAD_FIT is being used. This can get rid of building itb explicitly with 'make u-boot.itb' so, from now all required images will build just by make. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Kconfig | 2 +- board/theobroma-systems/puma_rk3399/README | 2 +- board/vamrs/rock960_rk3399/README | 1 - doc/README.rockchip | 2 -- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Kconfig b/Kconfig index 6b44256538..df8f2946c5 100644 --- a/Kconfig +++ b/Kconfig @@ -250,7 +250,7 @@ config BUILD_TARGET default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_GEN5 default "u-boot-spl.kwb" if ARCH_MVEBU && SPL default "u-boot-elf.srec" if RCAR_GEN3 - default "u-boot.itb" if SPL_LOAD_FIT && ARCH_SUNXI + default "u-boot.itb" if SPL_LOAD_FIT && (ROCKCHIP_RK3399 || ARCH_SUNXI) default "u-boot.kwb" if KIRKWOOD default "u-boot-with-spl.bin" if ARCH_AT91 && SPL_NAND_SUPPORT help diff --git a/board/theobroma-systems/puma_rk3399/README b/board/theobroma-systems/puma_rk3399/README index f67dfb451f..9b31b0b379 100644 --- a/board/theobroma-systems/puma_rk3399/README +++ b/board/theobroma-systems/puma_rk3399/README @@ -60,7 +60,7 @@ Creating a SPL image for SD-Card/eMMC Creating a SPL image for SPI-NOR > tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin spl_nor.img Create the FIT image containing U-Boot proper, ATF, M0 Firmware, devicetree - > make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb + > make CROSS_COMPILE=aarch64-linux-gnu- Flash the image =============== diff --git a/board/vamrs/rock960_rk3399/README b/board/vamrs/rock960_rk3399/README index d14399090e..c5c675c4ea 100644 --- a/board/vamrs/rock960_rk3399/README +++ b/board/vamrs/rock960_rk3399/README @@ -61,7 +61,6 @@ Compile the U-Boot > export CROSS_COMPILE=aarch64-linux-gnu- > make rock960-rk3399_defconfig > make - > make u-boot.itb Compile the rkdeveloptool ========================= diff --git a/doc/README.rockchip b/doc/README.rockchip index 0ee54cd00e..fac87ade2c 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -103,7 +103,6 @@ For example: => cd /path/to/u-boot => make nanopi-neo4-rk3399_defconfig => make - => make u-boot.itb - Get the rkbin @@ -170,7 +169,6 @@ For example: => cd /path/to/u-boot => make orangepi-rk3399_defconfig => make - => make u-boot.itb (Get spl/u-boot-spl-dtb.bin, u-boot.itb images and some boards would get spl/u-boot-spl.bin since it doesn't enable CONFIG_SPL_OF_CONTROL