-
Notifications
You must be signed in to change notification settings - Fork 458
Update build install script name to match the current situation #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Makefile.ubuntu14 | ||
Makefile.header_from_apt |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build_install_header_from_source_raspi2.bash |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build_install_header_from_apt_raspi2.bash |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -eu | ||
|
||
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../; pwd) | ||
|
||
# check kernel headers | ||
[ ! -e /usr/src/linux-headers-$(uname -r) ] && { bash -e $SRC_DIR/utils/print_env.bash "No kernel header files found."; exit 1; } | ||
|
||
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_apt Makefile | ||
make clean | ||
make | ||
sudo insmod rtmouse.ko | ||
|
||
# initialize the driver | ||
sleep 1 | ||
sudo chmod 666 /dev/rt* | ||
echo 0 > /dev/rtmotoren0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -eu | ||
|
||
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../; pwd) | ||
|
||
# check kernel headers | ||
[ ! -e /usr/src/linux ] && { bash -e $SRC_DIR/utils/print_env.bash "No kernel header files found."; exit 1; } | ||
|
||
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_source Makefile | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 意図した差分が出ていないので、コメントで補足。 |
||
make clean | ||
make | ||
sudo insmod rtmouse.ko | ||
|
||
# initialize the driver | ||
sleep 1 | ||
sudo chmod 666 /dev/rt* | ||
echo 0 > /dev/rtmotoren0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash -eu | ||
|
||
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../; pwd) | ||
|
||
# check kernel headers | ||
[ ! -e /usr/src/linux ] && { bash -e $SRC_DIR/utils/print_env.bash "No kernel header files found."; exit 1; } | ||
|
||
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_source Makefile | ||
make clean | ||
# Update for Raspberry Pi 4 | ||
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c | ||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメントで補足。 |
||
make | ||
sudo insmod rtmouse.ko | ||
|
||
# initialize the driver | ||
sleep 1 | ||
sudo chmod 666 /dev/rt* | ||
echo 0 > /dev/rtmotoren0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
意図した差分が出ていないので、コメントで補足。
このファイルは旧build_install.ubunt14.bashの名前を変えたもので、
差分は11行目の
ln -s Makefile.ubuntu14 Makefile
からln -s Makefile.header_from_apt Makefile
への変更のみ。