Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
a11c0951
Commit
a11c0951
authored
Jun 11, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build/scripts: install modules to the right directory after building the kernel
parent
5118f404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
wrs_build_kernel
build/scripts/wrs_build_kernel
+8
-2
wrs_build_modules
build/scripts/wrs_build_modules
+5
-1
No files found.
build/scripts/wrs_build_kernel
View file @
a11c0951
...
...
@@ -23,7 +23,7 @@ dirname="linux-2.6.39"
rm
-rf
$dirname
tar
xjf
${
WRS_DOWNLOAD_DIR
}
/
$tarname
||
wrs_die
"untar
$tarname
"
#
apply patches
apply patches
cd
$dirname
for
n
in
${
WRS_BASE_DIR
}
/../patches/kernel/v2.6.39/00
*
;
do
patch
-p1
<
$n
||
wrs_die
"patch kernel"
...
...
@@ -47,4 +47,10 @@ make oldconfig || wrs_die "kernel config"
make
$WRS_MAKE_J
zImage modules
||
wrs_die
"kernel compilation"
cp arch
/
$ARCH
/boot/zImage
$(
find
.
-name
'*.ko'
)
$WRS_OUTPUT_DIR
/images
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib/modules
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib/modules/2.6.39
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib/modules/2.6.39/kernel
cp
$(
find
.
-name
'*.ko'
)
$WRS_OUTPUT_DIR
/images/lib/modules/2.6.39/kernel
cp arch
/
$ARCH
/boot/zImage
$WRS_OUTPUT_DIR
/images
build/scripts/wrs_build_modules
View file @
a11c0951
...
...
@@ -22,4 +22,8 @@ cd $WRS_BASE_DIR/../kernel
make $WRS_MAKE_J || wrs_die "white rabbit kernel modules"
mkdir -p $WRS_OUTPUT_DIR/images
cp $(find . -name \*.ko) $WRS_OUTPUT_DIR/images
mkdir -p $WRS_OUTPUT_DIR/images/wr/
mkdir -p $WRS_OUTPUT_DIR/images/wr/lib
mkdir -p $WRS_OUTPUT_DIR/images/wr/lib/modules/
cp $(find . -name \*.ko) $WRS_OUTPUT_DIR/images/wr/lib/modules
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment