Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
63739dfc
Commit
63739dfc
authored
13 years ago
by
Benoit Rat
Committed by
Alessandro Rubini
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change 2.6.35 to 2.6.39 in scripts and so donload-info
parent
ecd0eba2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/download-info
+3
-3
3 additions, 3 deletions
build/download-info
build/scripts/wrs_build_kernel
+6
-6
6 additions, 6 deletions
build/scripts/wrs_build_kernel
build/scripts/wrs_build_modules
+2
-2
2 additions, 2 deletions
build/scripts/wrs_build_modules
with
11 additions
and
11 deletions
build/download-info
+
3
−
3
View file @
63739dfc
...
...
@@ -57,9 +57,9 @@ buildroot-pkg/libpcap-1.0.0.tar.gz 9ad1358c5dec48456405eac197a46d3d \
http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz \
pkg/buildroot-pkg/libpcap-1.0.0.tar.gz
buildroot-pkg/linux-2.6.3
5
.tar.bz2
091abeb4684ce03d1d936851618687b6
\
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.3
5
.tar.bz2 \
pkg/buildroot-pkg/linux-2.6.3
5
.tar.bz2
buildroot-pkg/linux-2.6.3
9
.tar.bz2
1aab7a741abe08d42e8eccf20de61e05
\
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.3
9
.tar.bz2 \
pkg/buildroot-pkg/linux-2.6.3
9
.tar.bz2
buildroot-pkg/ltrace_0.5-3.1.diff.gz 8342b15d3342da685c411599d1227db9 \
http://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5-3.1.diff.gz \
...
...
This diff is collapsed.
Click to expand it.
build/scripts/wrs_build_kernel
+
6
−
6
View file @
63739dfc
...
...
@@ -11,7 +11,7 @@ fi
wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR WRS_WR_REPOSITORY CROSS_COMPILE
wrs_echo
"--- Linux kernel for switch"
zipname
=
"buildroot-pkg/linux-2.6.3
5
.tar.bz2"
zipname
=
"buildroot-pkg/linux-2.6.3
9
.tar.bz2"
wrs_download
$zipname
mkdir
-p
$WRS_OUTPUT_DIR
/build
||
wrs_die
"mkdir build"
...
...
@@ -19,19 +19,19 @@ mkdir -p $WRS_OUTPUT_DIR/images || wrs_die "mkdir images"
# go to the build dir and compile it, using our configuration
cd
$WRS_OUTPUT_DIR
/build
dirname
=
"linux-2.6.3
5
"
dirname
=
"linux-2.6.3
9
"
rm
-rf
$dirname
tar
xjf
${
WRS_DOWNLOAD_DIR
}
/
$zipname
||
wrs_die
"untar
$zipname
"
# apply patches
cd
$dirname
for
n
in
${
WRS_BASE_DIR
}
/../patches/kernel/v2.6.3
5
/00
*
;
do
for
n
in
${
WRS_BASE_DIR
}
/../patches/kernel/v2.6.3
9
/00
*
;
do
patch
-p1
<
$n
||
wrs_die
"patch kernel"
done
# copy the config and replace "-j" level. First remove it in case it's left in
CFG
=
"
$WRS_BASE_DIR
/../patches/kernel/v2.6.3
5
/linux-config-wrswitch"
CFG
=
"
$WRS_BASE_DIR
/../patches/kernel/v2.6.3
9
/linux-config-wrswitch"
if
[
"x
$WRS_KERNEL_CONFIG
"
!=
"x"
]
;
then
if
[
-f
$WRS_KERNEL_CONFIG
]
;
then
CFG
=
$WRS_KERNEL_CONFIG
...
...
@@ -50,6 +50,6 @@ if ! type -p mkimage > /dev/null; then
export
PATH
=
${
WRS_OUTPUT_DIR
}
/build/u-boot-1.3.4/tools:
$PATH
fi
# now proceed as usual
make
$WRS_MAKE_J
u
Image modules
||
wrs_die
"kernel compilation"
make
$WRS_MAKE_J
z
Image modules
||
wrs_die
"kernel compilation"
cp arch
/
$ARCH
/boot/
u
Image
$(
find
.
-name
'*.ko'
)
$WRS_OUTPUT_DIR
/images
cp arch
/
$ARCH
/boot/
z
Image
$(
find
.
-name
'*.ko'
)
$WRS_OUTPUT_DIR
/images
This diff is collapsed.
Click to expand it.
build/scripts/wrs_build_modules
+
2
−
2
View file @
63739dfc
#!/bin/bash
l
#!/bin/bash
# check variables, like all scripts herein do
WRS_SCRIPT_NAME=$(basename $0)
...
...
@@ -16,7 +16,7 @@ mkdir -p $WRS_OUTPUT_DIR/build || wrs_die "mkdir build"
mkdir -p $WRS_OUTPUT_DIR/images || wrs_die "mkdir images"
# check that the kernel has been compiled (or at least configured)
export
LINUX
=
"
$WRS_OUTPUT_DIR
/build/linux-2.6.3
5
"
export LINUX="$WRS_OUTPUT_DIR/build/linux-2.6.3
9
"
test -f $LINUX/.config || wrs_die "no kernel in $LINUX"
cd $WRS_BASE_DIR/../kernel
make $WRS_MAKE_J || wrs_die "white rabbit kernel modules"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment