From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Nov 2022 16:37:46 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oqylO-00F209-4g for lore@lore.pengutronix.de; Fri, 04 Nov 2022 16:37:46 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oqylN-0003Ti-0I; Fri, 04 Nov 2022 16:37:45 +0100 Received: from mx-relay13-hz2.antispameurope.com ([83.246.65.99]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqykm-0003TX-AN for ptxdist@pengutronix.de; Fri, 04 Nov 2022 16:37:09 +0100 Received: from ip-092-050-072-125.um29.pools.vodafone-ip.de ([92.50.72.125]) by mx-relay13-hz2.antispameurope.com; Fri, 04 Nov 2022 16:37:07 +0100 Received: from eks-ex.eks-engel.local (192.168.100.30) by eks-ex.eks-engel.local (192.168.100.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 4 Nov 2022 16:37:03 +0100 Received: from eks-ex.eks-engel.local ([fe80::94d7:7878:1baa:2fa6]) by eks-ex.eks-engel.local ([fe80::94d7:7878:1baa:2fa6%4]) with mapi id 15.01.2507.012; Fri, 4 Nov 2022 16:37:03 +0100 From: "Gieseler, Christian" To: "'ptxdist@pengutronix.de'" Thread-Topic: Speed up targetinstall of certain packages Thread-Index: AdjwY0hUj3pljG+eSCeFyu1KqVu8gw== Date: Fri, 4 Nov 2022 15:37:02 +0000 Message-ID: <75f0b7f568884d33af8f5c6bc23bd5dd@eks-engel.de> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.69] x-c2processedorg: 290e847d-2dbf-4126-92e5-262e4c411ebf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-cloud-security-sender: cg@eks-engel.de X-cloud-security-recipient: ptxdist@pengutronix.de X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-relay13-hz2.antispameurope.com with CB66D1920275 X-cloud-security-connect: ip-092-050-072-125.um29.pools.vodafone-ip.de[92.50.72.125], TLS=1, IP=92.50.72.125 X-cloud-security-Digest: b932fd067b2f55fde60a4a7357115f61 X-cloud-security: scantime:1.872 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-102.2 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,USER_IN_WELCOMELIST, USER_IN_WHITELIST autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] Speed up targetinstall of certain packages X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hello, I have question regarding the speedup of daily work. We have frontend and backend of our webgui deployed with separate packages.= Only task of these package is to deploy the files with=20 @$(call install_tree, web-frontend, -, -, $(WEB_FRONTEND_DIR)/var-www/, /va= r/www/,no) Compile and install stages are empty. The just call targetinfo and touch to= skip the stages. The frontend depends on the backend and the backend obviously depends on ou= r application which is called by the backend.=20 So our web-frontend.in file looks like this: ## SECTION=3Dproject_specific config WEB_FRONTEND bool select APP_LAYER select WEB_BACKEND prompt "e-mode Web Frontend" help As expected if i clean and compile APP_LAYER the targetinstallstage of Back= end and Frontend are executed again. However this is only a Run-Time only d= ependency. It is a third-party archive and install_tree takes quite some ti= me even on fast build hosts. Even it if is just a minute it is annoying to = spend the time waiting during image creation. Trying to solve that i found = "if RUNTIME" f=FCr Run-Time only Dependencys in the documentation here: https://www.ptxdist.org/doc/daily_work_section.html#controlling-package-dep= endencies-in-more-detail So my expectation would be that if i change the webfrontend.in file like th= is: config WEB_FRONTEND bool select APP_LAYER if RUNTIME select WEB_BACKEND if RUNTIME prompt "e-mode Web Frontend" help The "if RUNTIME" would make sure that the targetinstall stage is not execut= ed again if i just execute a "ptxdist clean app-layer" followed by a "ptxdi= st images". Same with ptxdist clean root; ptxdist images. It is clear that = all targetinstall stages are executed again, but i would expect that the we= b-frontend is deployed earlier if no build dependency is given. Am i missing something, oder is the "if RUNTIME" Switch not working properl= y in my ptxdist-2018.12 version? Or does it have no effect on targetinstall= stages? Thanks for any feedback. BR, Christian