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 8BE50C05027 for ; Wed, 1 Feb 2023 20:41:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD8A385DC4; Wed, 1 Feb 2023 21:37:41 +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="NprAUimP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C94A385D75; Wed, 1 Feb 2023 21:33:50 +0100 (CET) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 BFBD985D0A for ; Wed, 1 Feb 2023 21:22:28 +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-xd2c.google.com with SMTP id y2so3848305iot.4 for ; Wed, 01 Feb 2023 12:22:28 -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=NprAUimPkrpPxpXOnD9FsecFxpDfA20TrX28/DsCNYNGh+iiR/p8UWD2tGlZe3gLfk wFyq0JoZn6p8sk0eU+Yb1P3nP5BREtDlY7XGNVGbd0jfwiO48lR7Ki5/g+u7j92wti0I 8doO8bcDoIVoebe6kEt24sXoN/RHcnxWy8yus= 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=rJUkuGzXpF86zttF9RfHQdyfkX09TqIPhaxoT9K2p5k2syacq3O5W5ZIw3fAX+362p lNz7sHO+hNNK8D7rlXWZEdkl78SiXe8eI3tbyS5cvwtrCOhel+FqD8B0TS1nGJRZZBAr S6AWZD7bYmnbjX716xH2jNsSFZr0E0Nw99vp++wFfsVD48/r2TZGmARDrda65Zs05iiC /NmQA7DOKahQ9k8O2p2Al6BlfY0mm1ggaVgFEYfCYg3hfBMCWTPCpp4qr1z9ganbm7Dv nnBzDkNi4ug3R2FGGGWXQTbmdGHEyaYPZkC5kr+g8115mG040Tha0N8ORW9wbZD7rlgE dm4w== X-Gm-Message-State: AO0yUKXWewPwO11V9+zx6LU4Jfik1ZGSXrf/ZQ5hgxkzG/VeAXhzD4M1 HbRTwKV4vmBMjqeXXK6BDQb+2UtYpi04SVgX X-Google-Smtp-Source: AK7set9HmizjU7T1f4mf2mR4Eda/ApHguwTQSas3t85u2EmR/QUgy6Jo0MJqESyBmShKshyWXItX1Q== X-Received: by 2002:a5e:8616:0:b0:716:b6e1:7d39 with SMTP id z22-20020a5e8616000000b00716b6e17d39mr2462415ioj.5.1675282948264; Wed, 01 Feb 2023 12:22:28 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:1fda:cca0:9a42:148c]) by smtp.gmail.com with ESMTPSA id i1-20020a6bf401000000b00704608527d1sm6166498iog.37.2023.02.01.12.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 12:22:28 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass Subject: [PATCH v3 74/76] tools: Drop xway-swap-bytes tool Date: Wed, 1 Feb 2023 13:20:25 -0700 Message-Id: <20230201202027.1943031-75-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230201202027.1943031-1-sjg@chromium.org> References: <20230201202027.1943031-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