From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 722DDC433E0 for ; Thu, 4 Mar 2021 14:06:40 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA48E64EDF for ; Thu, 4 Mar 2021 14:06:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA48E64EDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+9xDBhb3TDcptA8lhUEDBNhGk9xpLpHESvULHvyj4+M=; b=O+NmAMDcheQpEtgj1MijhXIWl WtFPBD64kCyRiyrQFITYgUeyBdlg35KgLxLAmd5AawUX3CjaIRyUfnAEoxUPBtLK8EZq51nRwLOa6 H0Y+rNlKobd96kU7a/ZePX5jHNUtu3alwmfkJPVgbRfGwqhmrRLH9T1pYfQfgAlfzovxBULFu/rSh DSRNLixUiQJczKYslAzKeYY7qwQcNbo43i52iGr4MIUvWN/o3snmhWJW+gQX2khOtyVccatDyG4KY bfgfY4MIR6oyrVFtJZMoHHaCfMghQYBQygJ3JUMM+eIttL7LQ5orcmEh2dUjizzsn7tebi58xVouS Tv8Wxp/Tw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHoZe-008pr0-Oc; Thu, 04 Mar 2021 14:03:30 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHoZT-008pqE-UH for linux-arm-kernel@lists.infradead.org; Thu, 04 Mar 2021 14:03:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614866598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WWRYY4xlDMGx9O1TM1bjsWJ7KLbEpS60XIQVZBaQhok=; b=JfR6HbZ9o3s/30s0nQ3iBe1whrWl7vcF6bFzP3rBTr2bP3saA3kjHbwSAH2ROleLMbvhXU lFhVBPKQ1NycGPMdeW0YMF5MPjZ0KGBj0ZM/a+6NJbCROkL6MfRNQhvQlIdgV0VdvImKbs 1o5oxL3+zprtWmASIsWQQ9dwT+FGu84= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-32-9xupE-CsMEGJfKOUHyjI1w-1; Thu, 04 Mar 2021 09:03:17 -0500 X-MC-Unique: 9xupE-CsMEGJfKOUHyjI1w-1 Received: by mail-wm1-f70.google.com with SMTP id w10so2769768wmk.1 for ; Thu, 04 Mar 2021 06:03:17 -0800 (PST) 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=WWRYY4xlDMGx9O1TM1bjsWJ7KLbEpS60XIQVZBaQhok=; b=lrQvbcKoHgoSCPwCIaMsunXdRyDzZ89WXYo3azNmSGHYqSqtetZ5pStKgKHiSq/N3e x8/CFqRmj5AVAFjHi+Rykc0tn4yJbTDccRa9/SInWR3PH0dGMGdE/lQ4pNKq1bfb/OIe MZrEO69QXWR09PYaMa9PW5cbuWBmdCXknPG40hT163L6bfKrOkFoVCerj6YRlc1CG3yk 9cWGny6IGJgGeYDSkKmj8O4UZnpbXuZ4NZQIk4xrio6DQTB93tYVcPU9L1wgRKU+YV5m pw3Okl3V/FAEt63U+oLy8901exVtgmSjsMgbhfhydAXYVE/YqXdgZIeTELy0mU3OjQMF o0Xg== X-Gm-Message-State: AOAM533t4I6XJyjmribWADtfLyep9INb8fE5nx5vN3zqt1qK5mIt7hac Uff7GmSvQklNp8eQJpjTcTFyj6EiZSUTqPwOP5CUQ41c93qM3ZBaTF+REnTqKViZVb43fmZJqp1 liYXMwNKGkSjQ3TLd/ofkw9KKSC07NmqCDxI= X-Received: by 2002:a1c:6707:: with SMTP id b7mr4249974wmc.185.1614866591747; Thu, 04 Mar 2021 06:03:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0FwkNv8hcTiGGNQD1zTXrnjWvlYY15HzXLNp58FcVU0HFnrPJqOYCVqAg7HUW5xd52n0npA== X-Received: by 2002:a1c:6707:: with SMTP id b7mr4249949wmc.185.1614866591451; Thu, 04 Mar 2021 06:03:11 -0800 (PST) Received: from redfedo.redhat.com ([2a01:cb14:499:3d00:cd47:f651:9d80:157a]) by smtp.gmail.com with ESMTPSA id j6sm5945759wmq.16.2021.03.04.06.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 06:03:10 -0800 (PST) From: Julien Thierry To: peterz@infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, ardb@kernel.org, masahiroy@kernel.org, jpoimboe@redhat.com, ycote@redhat.com, Julien Thierry Subject: Re: [RFC PATCH v2 00/13] objtool: add base support for arm64 Date: Thu, 4 Mar 2021 15:03:08 +0100 Message-Id: <20210304140308.1891245-1-jthierry@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jthierry@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 3/3/21 8:17 PM, Peter Zijlstra wrote: > One selfish thing, would it make sense to have a make target that builds > all supported srcarch targets? > > This might be useful when hacking on objtool to make sure everything > builds. > That makes sense. I can offer something like bellow which is simple enough to use and update. Otherwise you could have per arch targets, but since the generic part of objtool uses arch specific headers, you'll have to rebuild object files between two arch builds anyway. Julien --> >From 36cf9e05f2ee40bd5239c3b78cd1c5260941cb94 Mon Sep 17 00:00:00 2001 Date: Thu, 4 Mar 2021 14:46:39 +0100 Subject: [PATCH] objtool: Add target to test build of different architectures To make sure support for other architecture doesn't break when updating objtool, it's useful to have a shorthand to build the different objtool configuration. Add a target that can be called from the top level as such: $ make tools/objtool/build-test Signed-off-by: Julien Thierry --- tools/Makefile | 3 +++ tools/objtool/Makefile | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/tools/Makefile b/tools/Makefile index 7e9d34ddd74c..79e4a5ff0576 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -68,6 +68,9 @@ cpupower: FORCE cgroup firewire hv guest bootconfig spi usb virtio vm bpf iio gpio objtool leds wmi pci firmware debugging tracing: FORCE $(call descend,$@) +objtool/%: FORCE + $(call descend,objtool,$@) + bpf/%: FORCE $(call descend,$@) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index d5cfbec87c02..4c57f8cdaeb6 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -56,6 +56,12 @@ export SUBCMD_CHECK SUBCMD_ORC export srctree OUTPUT CFLAGS SRCARCH AWK include $(srctree)/tools/build/Makefile.include +objtool/build-test: FORCE + @SRCARCH=x86 $(MAKE) + @SRCARCH=x86 $(MAKE) clean + @SRCARCH=arm64 $(MAKE) + @SRCARCH=arm64 $(MAKE) clean + $(OBJTOOL_IN): fixdep FORCE @$(CONFIG_SHELL) ./sync-check.sh @$(MAKE) $(build)=objtool -- 2.25.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel