From patchwork Wed Jun 7 14:51:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9771691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E149A60234 for ; Wed, 7 Jun 2017 14:53:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3A9926E39 for ; Wed, 7 Jun 2017 14:53:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C85D02847D; Wed, 7 Jun 2017 14:53:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 823B026E39 for ; Wed, 7 Jun 2017 14:53:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIcJT-0001Rj-6g; Wed, 07 Jun 2017 14:51:59 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIcJR-0001RF-7q for xen-devel@lists.xensource.com; Wed, 07 Jun 2017 14:51:57 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id 1C/1C-02199-C0318395; Wed, 07 Jun 2017 14:51:56 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRWlGSWpSXmKPExsXitHSDvS63sEW kwbkTxhb3prxnd2D02N63iz2AMYo1My8pvyKBNeN672Wmglc8FW+W7mFqYDzJ3cXIySEh4C/R d3UZE4TtIXH97Akwm01AV6Jpy182EFtEQFnieNMX1i5GLg5mgV5midVLDzGDJIQFEiTmL9jID mKzCKhIbP5yHijOwcEr4Clxap4nxEw5ifPHf4KFOQW8JLY0B4CYQkAVv+5mQ5hqEnPXx4MU8w oISpyc+YQFxGYWkJA4+OIFM8QQS4lv658yT2Dkn4WkbBaSsgWMTKsY1YtTi8pSi3SN9ZKKMtM zSnITM3N0DQ2M9XJTi4sT01NzEpOK9ZLzczcxAoOMAQh2MDZ/cTrEKMnBpCTKW3DTPFKILyk/ pTIjsTgjvqg0J7X4EKMMB4eSBO9MQYtIIcGi1PTUirTMHGC4w6QlOHiURHh/gaR5iwsSc4sz0 yFSpxgVpcR5L4IkBEASGaV5cG2wGLvEKCslzMsIdIgQT0FqUW5mCar8K0ZxDkYlYd55IFN4Mv NK4Ka/AlrMBLSY75IJyOKSRISUVAPjJXtrlvvxGX+2R3Vm2KgvfnqwJM+O7eymT6JyAkwO594 rhSzz1d434bX2Qm2BB9IbTlVvLfldFSvNqJycsrffsdNB026uddC55skBhy8cflhaY+iw16// e07Lyj8fk08pMojFTUy8Ln9NMCz/6Q0HUZbSX/Nb//NvmvLk41uxE5xXtpo+5Q1UYinOSDTUY i4qTgQA2veS0qwCAAA= X-Env-Sender: prvs=3243fba83=Ian.Jackson@citrix.com X-Msg-Ref: server-8.tower-31.messagelabs.com!1496847113!104603327!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 40678 invoked from network); 7 Jun 2017 14:51:55 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-8.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 7 Jun 2017 14:51:55 -0000 X-IronPort-AV: E=Sophos;i="5.39,311,1493683200"; d="scan'208";a="435479308" X-CrossPremisesHeadersFilteredBySendConnector: FTLPEX02AMS01.citrite.net From: Ian Jackson To: Date: Wed, 7 Jun 2017 15:51:29 +0100 Message-ID: <1496847092-18838-2-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496847092-18838-1-git-send-email-ian.jackson@eu.citrix.com> References: <1496847092-18838-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-OrganizationHeadersPreserved: FTLPEX02AMS01.citrite.net Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Tim Deegan , Julien Grall , Jan Beulich , Ian Jackson Subject: [Xen-devel] [PATCH 1/4] xen/test/livepatch/Makefile: Install in DESTDIR/usr/lib/debug/xen-livepatch X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Dumping these patch files in /usr/lib/debug/xen-*.livepatch is a bit ugly. Also, refactor the Makefile to have a LIVEPATCHES variable, to reduce repetition. CC: Konrad Rzeszutek Wilk Signed-off-by: Ian Jackson Reviewed-by: Konrad Rzeszutek Wilk --- xen/test/livepatch/Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/xen/test/livepatch/Makefile b/xen/test/livepatch/Makefile index 76a779a..76d65cf 100644 --- a/xen/test/livepatch/Makefile +++ b/xen/test/livepatch/Makefile @@ -20,18 +20,21 @@ LIVEPATCH_BYE := xen_bye_world.livepatch LIVEPATCH_REPLACE := xen_replace_world.livepatch LIVEPATCH_NOP := xen_nop.livepatch +LIVEPATCHES += $(LIVEPATCH) +LIVEPATCHES += $(LIVEPATCH_BYE) +LIVEPATCHES += $(LIVEPATCH_REPLACE) +LIVEPATCHES += $(LIVEPATCH_NOP) + +LIVEPATCH_DEBUG_DIR ?= $(DEBUG_DIR)/xen-livepatch + default: livepatch install: livepatch - $(INSTALL_DATA) $(LIVEPATCH) $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH) - $(INSTALL_DATA) $(LIVEPATCH_BYE) $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH_BYE) - $(INSTALL_DATA) $(LIVEPATCH_REPLACE) $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH_REPLACE) - $(INSTALL_DATA) $(LIVEPATCH_NOP) $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH_NOP) + $(INSTALL_DIR) $(DESTDIR)$(LIVEPATCH_DEBUG_DIR) + $(INSTALL_DATA) $(LIVEPATCHES) $(DESTDIR)$(LIVEPATCH_DEBUG_DIR) + uninstall: - rm -f $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH) - rm -f $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH_BYE) - rm -f $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH_REPLACE) - rm -f $(DESTDIR)$(DEBUG_DIR)/$(LIVEPATCH_NOP) + cd $(DESTDIR)$(LIVEPATCH_DEBUG_DIR) && rm -f $(LIVEPATCHES) .PHONY: clean clean::