From patchwork Mon Oct 26 02:38:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1387437 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=AYj4XVlo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKJvt3SSgz9sSn for ; Mon, 26 Oct 2020 13:39:54 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8192824C5; Mon, 26 Oct 2020 03:39:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="AYj4XVlo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7670F824C7; Mon, 26 Oct 2020 03:38:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 039CF8244A for ; Mon, 26 Oct 2020 03:38:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x144.google.com with SMTP id c11so3824989iln.9 for ; Sun, 25 Oct 2020 19:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=djar5BhKpRnW9khoFRxZG9/Ou4P+lhqTEXzvKdMGx30=; b=AYj4XVlohHAXNOCKZj5ZtlJAl3V9gqAXDayw+Aao1zODUmSm+bjuk4JnoJ5W8EICsi wbxkyPvW4olxf9W3Z/g0QGzHg6dw9udm76HwMUC1bmkFBP5xySzIqAl/aDF7gEPHnaxF YRnz5iJy2QGhg/X4r6bEfeGj/oawPqohTZn6U= 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:content-transfer-encoding; bh=djar5BhKpRnW9khoFRxZG9/Ou4P+lhqTEXzvKdMGx30=; b=EpJ/3S/qB27ZHp8cS8OZQ5qu4yJGQ6obdlwaA6U4TAQ9qOYgxYmjbSpLxygO6OnBTe KP8xIWgN/dGQUj6ddRRPR8n9Mw228trDVfR6Z8Yq4V+84ZeV4w9ahoCGkS4NbWhWqs/R ZDKOolHaST6E3Xzx4Y1+ukIsi/IWv7Q5LH3hUyeGBXc4pinY0D2JZqSmxeXe2Z36u34T 1dOK59TkIMijW1lsvcIZpc++aWxI9GF12XeSH/q06/mZgmd5Y5xayrH26rTGBCUB4u7a +zxeU/QKnUtKKqlgtxxJAEuR4gQw7puHNLC18yiwVjr3dMfAKL29C1Dl5B/Fgn2QVnJV h9iQ== X-Gm-Message-State: AOAM531hhJnUmSaNZWjoxS+QRRkXGLUp1Lo12uNdjWZKZWKVxN/sWrHj dchCcg1wjUxem6RIaYSC6LZ3ExGjPCNVHs4C X-Google-Smtp-Source: ABdhPJxOaQeYObFEmV2t6B/J408DTxqyDkKNXxQmO4uEkazINR6pmTRU8VfGgKJSuvjPdXMLOqEMPQ== X-Received: by 2002:a92:9106:: with SMTP id t6mr9805651ild.178.1603679931752; Sun, 25 Oct 2020 19:38:51 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id y3sm4632838ioq.18.2020.10.25.19.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 19:38:51 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Stephen Warren , Stephen Warren , Simon Glass , Heiko Stuebner , Jan Kiszka , Kever Yang , Masahiro Yamada , Masahiro Yamada , Vignesh Raghavendra Subject: [PATCH v2 05/11] Makefile: Generate a symbol file for u-boot-spl Date: Sun, 25 Oct 2020 20:38:30 -0600 Message-Id: <20201026023836.1629465-6-sjg@chromium.org> X-Mailer: git-send-email 2.29.0.rc2.309.g374f81d7ae-goog In-Reply-To: <20201026023836.1629465-1-sjg@chromium.org> References: <20201026023836.1629465-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Add a rule to generate u-boot-spl.sym so that pytest can discover the available unit tests. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- (no changes since v1) scripts/Makefile.spl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 2e3a443035c..9f1f7445d71 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -214,7 +214,7 @@ spl/boot.bin: $(obj)/$(SPL_BIN)-align.bin FORCE $(call if_changed,mkimage) endif -INPUTS-y += $(obj)/$(SPL_BIN).bin +INPUTS-y += $(obj)/$(SPL_BIN).bin $(obj)/$(SPL_BIN).sym ifdef CONFIG_SAMSUNG INPUTS-y += $(obj)/$(BOARD)-spl.bin @@ -408,6 +408,11 @@ MKIMAGEFLAGS_u-boot-spl-mtk.bin = -T mtk_image \ $(obj)/u-boot-spl-mtk.bin: $(obj)/u-boot-spl.bin FORCE $(call if_changed,mkimage) +quiet_cmd_sym ?= SYM $@ + cmd_sym ?= $(OBJDUMP) -t $< > $@ +$(obj)/$(SPL_BIN).sym: $(obj)/$(SPL_BIN) FORCE + $(call if_changed,sym) + # Rule to link u-boot-spl # May be overridden by arch/$(ARCH)/config.mk quiet_cmd_u-boot-spl ?= LD $@