Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6311554rwd; Mon, 19 Jun 2023 05:41:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZrQSW+RZsvalkits1pPbzwAR7utTAjhCMLDu5Ijd/DHRafuqxPoGbwyEmQ6rSMpbC2Xnc X-Received: by 2002:a54:4519:0:b0:39e:cc24:b434 with SMTP id l25-20020a544519000000b0039ecc24b434mr3448785oil.22.1687178468768; Mon, 19 Jun 2023 05:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687178468; cv=none; d=google.com; s=arc-20160816; b=edFCDPBpcRtml7KqdMTOv4E7BxpnFW0XSJRNK7BFomQ8ib1Nqw/a72Sh8k8vIgtTrg Vdg8BKDqHJum87umnKaCZXtcRlEkMlWpwzyDHEqDBl+uaBDZL3No8N1p05xaJW2Ma0gD wuHyFiHe8KFwMqBZtGC6CBOxNu7xjyldUEhNZ1sKY263lZl9T6o/YxX1nCRH0hHFeghm +6Na0KWrv3DOX4HUkKqOnSCrcLvSDFB2NF3dpRvXDYA67Uav49vjQ0cMjfaYAR1q5QPE PtklsFTEZe+AW2WmyCWjYOwXcBDXBFZ1xsbLOUH3pPQ1rl1bf9jb96sqG1Xyqc4GQNTU 1rNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Pg2faAZ98rHiHLWIpqJplCICkhWfiR2AkLe09e//pAc=; b=vF0PZOh2UjdDJPUf2IJmZq72eJhkCYVIldFhKpCEOErlg7/fGWTZG68vAhUTqC8H2M j12wmv8eLwoP7RLfiZnRwxYtIOXnx2JzYXraU3i8d0ZphWNEOgl4TxkF4+p6tD6PhpQA aWZYWlAB9K0VMXqgGzXvqv0I5WOiAM3VW2oco7uvETLWucUyib4XQ9AKwmFdKgU/lVvl gMk9OdOF0hrGY5UjrCay9ZvorHiHmUmaQuk5lb4aUVSDNUPHLWUoNBPNzGOarCftF98y vSIoda/jTSBCAWVUFeSqOmTjkqC6HHU5bErEhQAOq1LsZ4DvTo+SAC/5R9bstTSzlB/2 +h9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a17090a764400b0024e47fae466si7134183pjl.180.2023.06.19.05.40.55; Mon, 19 Jun 2023 05:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231214AbjFSMY3 (ORCPT + 99 others); Mon, 19 Jun 2023 08:24:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbjFSMYR (ORCPT ); Mon, 19 Jun 2023 08:24:17 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7432A10D7; Mon, 19 Jun 2023 05:23:46 -0700 (PDT) X-QQ-mid: bizesmtp84t1687177368tfq88rp0 Received: from linux-lab-host.localdomain ( [116.30.126.60]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 Jun 2023 20:22:46 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: +Fw3Sd5mYDVy5IXdeJE6BIovvKlOnc3GNN6uMuvLeGf2lVehdl147neDdZAXi k+b0AfWCP7jJa1yW7vuS3V2NarADU/1SM6jqM/pESBtccHbLq/RLRa/Fl9zyl7PnJ63sMDH leUW3mRppM9T0ZdKdznzbdnsmbr/7Tq/CaZzj8VarQ9ZxoW5wmqkVVTHWC/ksz1Zi9mAGfe gyca9dSF5Xxo/hqh9ALn+aki21so5d64XUVsvDdnK6RH5LV1I0PDqvMvzh9A5LHOPVK59o5 btlLHuuuHfAgY4X1GSlBc3NjMdl3aWccB5vyIkR+OvBu3iR9pJ0Lf1J521GQMedrxna1x1J uUCCNbuAOUr7XVZbmcnsGfmx2Llhd8rguT46ekwwqZLpqpygtw= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10358423973123995557 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, thomas@t-8ch.de Subject: [PATCH v5 0/5] nolibc: add part2 of support for rv32 Date: Mon, 19 Jun 2023 20:22:43 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Willy This is the revision of the v4 part2 of support for rv32 [1], this further split the generic KARCH code out of the old rv32 compile patch and also add kernel specific KARCH and nolibc specific NARCH for tools/include/nolibc/Makefile too. This is rebased on the dev.2023.06.14a branch of linux-rcu repo [2] with basic run-user and run tests. Changes from v4 -> v5: * selftests/nolibc: allow customize kernel specific ARCH variable The KARCH customize support part splitted out of the old rv32 compile patch and removed the one passed to tools/include/nolibc/Makefile. * tools/nolibc: add kernel and nolibc specific ARCH variables Pass original ARCH to tools/include/nolibc/Makefile, add KARCH and NARCH for kernel and nolibc respectively. * selftests/nolibc: riscv: customize makefile for rv32 Now, it is rv32 specific, no generic code. Best regards, Zhangjin --- [1]: https://lore.kernel.org/linux-riscv/cover.1686128703.git.falcon@tinylab.org/ [2]: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/ Zhangjin Wu (5): tools/nolibc: fix up #error compile failures with -ENOSYS tools/nolibc: fix up undeclared syscall macros with #ifdef and -ENOSYS selftests/nolibc: allow customize kernel specific ARCH variable tools/nolibc: add kernel and nolibc specific ARCH variables selftests/nolibc: riscv: customize makefile for rv32 tools/include/nolibc/Makefile | 18 +++++++++--- tools/include/nolibc/sys.h | 38 ++++++++++++++++--------- tools/testing/selftests/nolibc/Makefile | 18 ++++++++++-- 3 files changed, 55 insertions(+), 19 deletions(-) -- 2.25.1