Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
omap5-sgx-ddk-linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kernel
omap5-sgx-ddk-linux
Commits
350acb19
Commit
350acb19
authored
Apr 24, 2017
by
Matthijs van Duin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build a debian package
parent
d17699dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
5 deletions
+41
-5
build.sh
build.sh
+41
-5
No files found.
build.sh
View file @
350acb19
...
...
@@ -31,13 +31,49 @@ _make
build_output
=
eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild
modules
=(
pvrsrvkm.ko
)
install_dir
=
"lib/modules/
$uname_r
/extra"
install_dir
=
"
tmp/
lib/modules/
$uname_r
/extra"
mkdir
-vp
"
$install_dir
"
cp
"
${
modules
[@]/#/
"
$build_output
/"
}
"
"
$install_dir
"
mkdir
-p
tmp/DEBIAN
cat
>
tmp/DEBIAN/control
<<
END
Package: sgx-modules-
$uname_r
Version: 1cross
Section: base
Priority: optional
Architecture: armhf
Depends: linux-image-
$uname_r
Recommends: sgx-userspace-1.14.3699939
Maintainer: Matthijs van Duin <matthijsvanduin@gmail.com>
Description: sgx kernel modules for linux
$uname_r
END
cat
>
tmp/DEBIAN/postinst
<<
END
#!/bin/sh
depmod
$uname_r
END
chmod
a+x tmp/DEBIAN/postinst
cat
>
tmp/DEBIAN/postrm
<<
END
#!/bin/sh
if [[ -d /lib/modules/
$uname_r
]]; then
depmod
$uname_r
fi
END
chmod
a+x tmp/DEBIAN/postrm
chmod
-R
g
=
rX,o
=
rX tmp
#echo ""
#echo "creating $deploy_dir/sgx-335x-$uname_r.tar.xz"
#tar cavf "$deploy_dir/sgx-335x-$uname_r.tar.xz" \
# --owner=root --group=root --mode="g=rX,o=rX" \
# "${modules[@]/#/"$install_dir/"}"
echo
""
echo
"creating
$deploy_dir
/sgx-
335x-
$uname_r
.tar.xz
"
tar
cavf
"
$deploy_dir
/sgx-335x-
$uname_r
.tar.xz"
\
--owner
=
root
--group
=
root
--mode
=
"g=rX,o=rX"
\
"
${
modules
[@]/#/
"
$install_dir
/"
}
"
echo
"creating
$deploy_dir
/sgx-
modules-
$uname_r
.deb
"
fakeroot dpkg-deb
--build
tmp
"
$deploy_dir
/sgx-modules-
$uname_r
.deb"
rm
-rf
tmp
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