for the purpose of configuring and building a current kernel for my
BBB, i'm checking out the kernel source here (3.11 branch):
https://github.com/beagleboard/kernel/tree/3.11
and what's there *seems* straightforward enough but i'm puzzled as to
what's going on in the "patch.sh" script (if there's a README
somewhere that clarifies it, that would be most excellent).
in general, i'm assuming that whipping up an appropriate kernel
source tree for the BBB consists of two basic steps:
* check out some recent kernel source (via tag or SHA or whatever)
* patch the heck out of it (https://github.com/beagleboard/kernel/tree/3.11/patches)
so some questions about that patch.sh script.
first, why are there references to two git repos for the kernel
source that would seem to be equivalent? early on, there's this
reference:
EXTERNAL_TREE="git://github.com/torvalds/linux.git"
EXTERNAL_BRANCH="master"
EXTERNAL_SHA="e4ef108fcde0b97ed38923ba1ea06c7a152bab9e"
while later on, the mainline kernel source is checked out:
if [ ! -f ./.git/config ] ; then
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git .
are those two repos not functionally equivalent? if not, what's the
difference?
also, the mainline kernel source is checked out as of tag v3.11-rc4,
while that "EXTERNAL_TREE" is checked out based on an SHA -- what's
the difference between them? "git diff" tells me that the difference
is only a few hundred lines, so what does that represent?
in the end, i don't need all the functionality of that script in the
sense of being able to build a recipe file; i'm assuming that, if all
i want is a compilable kernel source tree, i need only:
* check out some appropriate kernel tree, then
* apply all those patches
is that correct? so what is the minimal formula for getting a relevant
kernel source tree? thanks.
rday