Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06EE8C38142 for ; Sun, 29 Jan 2023 01:21:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5D8D28582F; Sun, 29 Jan 2023 02:17:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="n+HsA1zR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DAE9285820; Sun, 29 Jan 2023 02:16:25 +0100 (CET) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 93BA885812 for ; Sun, 29 Jan 2023 02:16:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd30.google.com with SMTP id e2so597569iot.11 for ; Sat, 28 Jan 2023 17:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p5bu4mfGaVgjbaSfKaJlxqrLHJ2yzSSXke+G6X7nkkk=; b=n+HsA1zRJx9w2RVMgS5IH4udj+pYV0OddEWQkziKBH68i45IZezAw4Tv+W9qdhAfo+ OTqgJ81k0D9WkoBmwqoKj4/XlC75xFvdgSCozMS4PeNEjL8KFoW04vbBMNhhmByYSq6O Eq/b/gEmVNCUCn6LLwLjkp6gtt6zdtPSiidhI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p5bu4mfGaVgjbaSfKaJlxqrLHJ2yzSSXke+G6X7nkkk=; b=GD6hE1uWTm/JisMGKHD9k4oQKoEaV9p2XsFoXzAQqj/9EhQUqx6oPMUOPt4B+CxOEX Wzc3BLs9HmMmFXWdID9BiKeUjQdPb2cqevKZj8uLoB2cdXE8MYc2J/AI/X6Nj3a7thKT hyHAOKrPOY32354kPHIMwUTR0zQmohx5WiWqyMaOH7lLS+W+Wd/qrwVAUoDUCDsZYgyf HKagSS6sZ1WEOrKmsCv+X93cU3egG0rJcjgPgUQpQFnzN9/ECVhWI+SqrDHcamodSFFv MuMyg9axlNybjFz23PzXSqCT+4/5Uj9SSe8xI+VyVOv249KeZ+quT8rsJgV+JPtIheDa zCNw== X-Gm-Message-State: AO0yUKUpTs1Pn3wJtlCxjvEtUyxKSvGOeqeN7UeH7NhI3RVC0Qe3jfVS aPAe2K3JEcDy7+IE3t5r/VDjmOr5UvF/7P5y X-Google-Smtp-Source: AK7set+lRDGFsqL2zdlLJ0+BaKqv1dL2/qaoiHjUbossxg8q15PEG+ZPyR0RHYvEy+dR0PUOF0qIhw== X-Received: by 2002:a05:6602:370d:b0:716:948a:8871 with SMTP id bh13-20020a056602370d00b00716948a8871mr2635570iob.1.1674954956680; Sat, 28 Jan 2023 17:15:56 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id b5-20020a92c145000000b003024dd5c682sm568613ilh.71.2023.01.28.17.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 17:15:56 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v2 85/87] tools: Drop xway-swap-bytes tool Date: Sat, 28 Jan 2023 17:59:01 -0700 Message-Id: <20230129005903.74918-86-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230129005903.74918-1-sjg@chromium.org> References: <20230129005903.74918-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This is very old and does not appear to be used. The CONFIG option enabling it is no-longer present. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) README | 7 ------- tools/Makefile | 4 ---- tools/xway-swap-bytes.c | 38 -------------------------------------- 3 files changed, 49 deletions(-) delete mode 100644 tools/xway-swap-bytes.c diff --git a/README b/README index edce7890c0f..dee0332b0a8 100644 --- a/README +++ b/README @@ -286,13 +286,6 @@ The following options need to be configured: same as CFG_SYS_DDR_SDRAM_BASE for all Power SoCs. But it could be different for ARM SoCs. -- MIPS CPU options: - CONFIG_XWAY_SWAP_BYTES - - Enable compilation of tools/xway-swap-bytes needed for Lantiq - XWAY SoCs for booting from NOR flash. The U-Boot image needs to - be swapped if a flash programmer is used. - - ARM options: CFG_SYS_EXCEPTION_VECTORS_HIGH diff --git a/tools/Makefile b/tools/Makefile index 0eadd8154a7..041c437e65b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -27,7 +27,6 @@ ifneq ($(HOST_TOOLS_ALL),) CONFIG_ARCH_KIRKWOOD = y CONFIG_CMD_LOADS = y CONFIG_CMD_NET = y -CONFIG_XWAY_SWAP_BYTES = y CONFIG_NETCONSOLE = y CONFIG_ARCH_SUNXI = y endif @@ -61,9 +60,6 @@ HOSTCFLAGS_gen_ethaddr_crc.o := -pedantic hostprogs-$(CONFIG_CMD_LOADS) += img2srec HOSTCFLAGS_img2srec.o := -pedantic -hostprogs-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes -HOSTCFLAGS_xway-swap-bytes.o := -pedantic - hostprogs-y += mkenvimage mkenvimage-objs := mkenvimage.o os_support.o lib/crc32.o diff --git a/tools/xway-swap-bytes.c b/tools/xway-swap-bytes.c deleted file mode 100644 index 3a6d82d54a0..00000000000 --- a/tools/xway-swap-bytes.c +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include -#include -#include - -#ifndef BUFSIZ -# define BUFSIZ 4096 -#endif - -#undef BUFSIZ -# define BUFSIZ 64 -int main (void) -{ - short ibuff[BUFSIZ], obuff[BUFSIZ]; - int rc, i, len; - - while ((rc = read (0, ibuff, sizeof (ibuff))) > 0) { - memset (obuff, 0, sizeof (obuff)); - for (i = 0; i < (rc + 1) / 2; i++) { - obuff[i] = ibuff[i ^ 1]; - } - - len = (rc + 1) & ~1; - - if (write (1, obuff, len) != len) { - perror ("read error"); - return (EXIT_FAILURE); - } - - memset (ibuff, 0, sizeof (ibuff)); - } - - if (rc < 0) { - perror ("read error"); - return (EXIT_FAILURE); - } - return (EXIT_SUCCESS); -} -- 2.39.1.456.gfc5497dd1b-goog