From: <gerg@snapgear.com>
To: linux-m68k@vger.kernel.org, uclinux-dev@uclinux.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/1] m68k: merge m68k and m68knommu arch directories
Date: Tue, 22 Mar 2011 14:43:04 +1000 [thread overview]
Message-ID: <1300768985-902-1-git-send-email-gerg@snapgear.com> (raw)
The following patch merges the m68k and m68knommu arch directories.
This patch has been trimmed for review purposes - the automated file
moving and mergeing carried out by the script contained in this email
has been removed. Only the manually required changes after running the
script are shown as the patch. (So to end up with the final required
change you need to run this script then apply the patch).
This change is available as the only commit on the m68knommu git tree,
for-linux branch:
The following changes since commit a952baa034ae7c2e4a66932005cbc7ebbccfe28d:
Linus Torvalds (1):
Merge branch 'for-linus' of git://git.kernel.org/.../dtor/input
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu.git for-linus
Greg Ungerer (1):
m68k: merge m68k and m68knommu arch directories
It is also on the for-next branch in that tree, so will get some testing
in the next tree for the next few days.
I have done some testing on both MMU and non-MMU targets, and they
worked fine. I tried a few ColdFire non-MMU builds, and I built and
ran the Atari target in the AranyM emulator. Other than some option
re-ordering the configs produced are the same.
If everyone is happy I would like to ask Linus to pull this before the
end of the current merge window.
Regards
Greg
-----
#!/bin/bash
mergefile() {
BASE=${1%.?}
EXT=${1#${BASE}}
git mv ${TARGET}/$1 ${TARGET}/${BASE}_mm${EXT}
git mv ${SOURCE}/$1 ${TARGET}/${BASE}_no${EXT}
cat <<-EOF > ${TARGET}/$1
#ifdef CONFIG_MMU
#include "${BASE}_mm${EXT}"
#else
#include "${BASE}_no${EXT}"
#endif
EOF
git add ${TARGET}/$1
}
mergedir() {
TARGET=arch/m68k/$1
SOURCE=arch/m68knommu/$1
files=${1}_MERGE_FILES
MERGE_FILES=${!files}
echo "merging files in $1"
for F in $MERGE_FILES ; do
mergefile $F
done
files=${1}_NOMERGE_FILES
NOMERGE_FILES=${!files}
echo "moving files in $1"
for F in $NOMERGE_FILES ; do
git mv ${SOURCE}/$F ${TARGET}/$F
done
files=${1}_REMOVE_FILES
REMOVE_FILES=${!files}
echo "removing common files in $1"
for F in $REMOVE_FILES ; do
git rm ${SOURCE}/$F
done
if [ -e ${SOURCE}/Makefile ]; then
git mv ${TARGET}/Makefile ${TARGET}/Makefile_mm
git mv ${SOURCE}/Makefile ${TARGET}/Makefile_no
cat <<-EOF > ${TARGET}/Makefile
ifdef CONFIG_MMU
include ${TARGET}/Makefile_mm
else
include ${TARGET}/Makefile_no
endif
EOF
git add ${TARGET}/Makefile
fi
}
configs_MERGE_FILES=""
configs_NOMERGE_FILES="m5208evb_defconfig \
m5272c3_defconfig \
m5307c3_defconfig \
m5249evb_defconfig \
m5275evb_defconfig \
m5407c3_defconfig"
configs_REMOVE_FILES=""
kernel_MERGE_FILES="asm-offsets.c \
dma.c entry.S \
m68k_ksyms.c \
module.c \
process.c \
ptrace.c \
setup.c \
signal.c \
sys_m68k.c \
time.c \
traps.c \
vmlinux.lds.S"
kernel_NOMERGE_FILES="init_task.c \
irq.c \
syscalltable.S"
kernel_REMOVE_FILES=""
lib_MERGE_FILES="checksum.c \
muldi3.c"
lib_NOMERGE_FILES="delay.c \
divsi3.S \
memcpy.c \
memmove.c \
memset.c \
modsi3.S \
mulsi3.S \
udivsi3.S \
umodsi3.S"
lib_REMOVE_FILES="ashldi3.c \
ashrdi3.c \
lshrdi3.c"
mm_MERGE_FILES="init.c kmap.c"
mm_NOMERGE_FILES=""
mm_REMOVE_FILES=""
DIRS="configs kernel lib mm"
echo "STARTing merge"
for dir in $DIRS ; do
echo "merging $dir..."
mergedir $dir
done
echo "moving platform"
git mv arch/m68knommu/platform arch/m68k/
git rm arch/m68knommu/defconfig
echo "merging master Makefile"
git mv arch/m68k/Makefile arch/m68k/Makefile_mm
git mv arch/m68knommu/Makefile arch/m68k/Makefile_no
cat <<-EOF > arch/m68k/Makefile
ifdef CONFIG_MMU
include arch/m68k/Makefile_mm
else
include arch/m68k/Makefile_no
endif
EOF
git add arch/m68k/Makefile
echo "removing remaining m68knommu dirs"
git rm -r arch/m68knommu
rm -r arch/m68knommu
exit 0
next reply other threads:[~2011-03-22 4:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 4:43 gerg [this message]
2011-03-22 4:43 ` [PATCH 1/1] m68k: merge m68k and m68knommu arch directories gerg
2011-03-23 22:07 ` [PATCH 0/1] " Geert Uytterhoeven
2011-03-23 22:14 ` Geert Uytterhoeven
2011-03-24 0:01 ` Greg Ungerer
2011-03-24 8:04 ` Geert Uytterhoeven
2011-03-24 12:05 ` Greg Ungerer
2011-03-23 23:00 ` Greg Ungerer
2011-03-24 8:06 ` Geert Uytterhoeven
2011-03-24 11:54 ` Greg Ungerer
2011-03-25 12:00 ` Greg Ungerer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300768985-902-1-git-send-email-gerg@snapgear.com \
--to=gerg@snapgear.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.org \
--cc=uclinux-dev@uclinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox