Skip to content

Instantly share code, notes, and snippets.

@Mr-Bossman
Last active September 19, 2023 01:40
Show Gist options
  • Save Mr-Bossman/19912591cb99421cd26ce38c1245ca6e to your computer and use it in GitHub Desktop.
Save Mr-Bossman/19912591cb99421cd26ce38c1245ca6e to your computer and use it in GitHub Desktop.
script to list added and removed architectures in the linux tree
#!/bin/bash
#removed archs
git log --diff-filter=A --oneline --name-only -- arch/ | grep -E "^arch/[^/]?+/Makefile$" | xargs git log --oneline --diff-filter=D --name-only --
#added arches
git log --diff-filter=A --oneline --name-only -- arch/ | grep -E "^arch/[^/]?+/Makefile$" | xargs git log --oneline --diff-filter=A --name-only --
#example outoput of removed
: '
aec499c75cf8 nds32: Remove the architecture
arch/nds32/Makefile
1c4b5ecb7ea1 remove the h8300 architecture
arch/h8300/Makefile
a579fcfa8e49 c6x: remove architecture
arch/c6x/Makefile
fb37409a01b0 arch: remove unicore32 port
arch/unicore32/Makefile
c690eddc2f3b CRIS: Drop support for the CRIS port
arch/cris/Makefile
bb9d812643d8 arch: remove tile port
arch/tile/Makefile
4ba66a976072 arch: remove blackfin port
arch/blackfin/Makefile
b8c9c8f0190f arch: remove score port
arch/score/Makefile
553b085c2075 arch: remove m32r port
arch/m32r/Makefile
fd8773f9f544 arch: remove frv port
arch/frv/Makefile
739d875dd698 mn10300: Remove the architecture
arch/mn10300/Makefile
bb6fb6dfcc17 metag: Remove arch/metag/
arch/metag/Makefile
26202873bb51 avr32: remove support for AVR32 architecture
arch/avr32/Makefile
4b0847842204 Drop support for Renesas H8/300 (h8300) architecture
arch/h8300/Makefile
66d857b08b8c m68k: merge m68k and m68knommu arch directories
arch/m68knommu/Makefile
5e53879008b9 sparc,sparc64: unify Makefile
arch/sparc64/Makefile
f606ddf42fd4 remove the v850 port
arch/v850/Makefile
917f0af9e5a9 powerpc: Remove arch/ppc and include/asm-ppc
arch/ppc/Makefile
d088f323574e sh: Consolidate sh/sh64 Makefiles.
arch/sh64/Makefile
74b469f2e6b1 x86: move i386 and x86_64 Makefiles to arch/x86
arch/i386/Makefile
arch/x86_64/Makefile
99eb8a550dbc Remove the arm26 port
arch/arm26/Makefile
437a58db57c6 powerpc: Move remaining .c files from arch/ppc64 to arch/powerpc
arch/ppc64/Makefile
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment