From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-eopbgr120084.outbound.protection.outlook.com ([40.107.12.84] helo=FRA01-PR2-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLlXx-0000m4-QY for ptxdist@pengutronix.de; Tue, 07 Apr 2020 12:33:34 +0200 From: Simon Falsig Date: Tue, 7 Apr 2020 10:33:31 +0000 Message-ID: Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] Do ipkg-push with SHA256 checksums List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" Hi, I'm trying to setup ipkg-push to repository, generating a signed Packages list with SHA256 checksums (using opkg, and the --checksum SHA256 parameter). From what I can see though, the ipkg-push is done by scripts/ipkg-push, which doesn't have a way of setting the checksum type, and just calls ${TYPE}-make-index without any parameters. I can easily hack something together to make this work for me (by just modifying the ipkg-push script), but is there a more correct way? Judging from the ipkg-push file, it's made to support not just opkg, but also ipkg, which I don't think supports the SHA256 checksum. So just blindly adding the checksum parameter to the commandline would not maintain the generic support. On the other hand, I haven't found any other users of the script than ones where it's called with opkg as the type. Suggestions: - Make ipkg-push just support opkg, and allow the checksumtype to be specified as a parameter to the script (image_ipkg.make already generates the local using opkg-make-index only) - Maintain ipkg/opkg support by making some more elaborate parameters (for instance an "make-index-extra" that is then just passed from ipkg-push to ${TYPE}-make-index - Pull index generation out of ipkg-push, and let it be done by image_ipkg.make instead (which seems to be the only other place that is currently calling any of the -make-index functions) - Something entirely different Any input is welcome! Thanks in advance! Simon Falsig _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de