-
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
Conversation
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_apt Makefile |
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
への変更のみ。
# 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 comment
The reason will be displayed to describe this comment to others. Learn more.
意図した差分が出ていないので、コメントで補足。
このファイルは旧build_install.raspbian.bash
の名前を変えたもので、
差分は11行目のln -s Makefile.raspbian Makefile
からln -s Makefile.header_from_source Makefile
への変更のみ。
# Update for Raspberry Pi 4 | ||
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c |
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_header_from_source_raspi2.bash
の差分は13, 14行目のみ。
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.
良いと思います。
RasPi4 のUbuntu 20.04, Raspberry Pi OS環境で./build_install.bash
実行後にbuild_install_header_from_apt_raspi4.bash
が実行されることを確認しました。
What does this implement/fix?
現状のインストールスクリプトには"raspbian"や"ubuntu"のようなキーワードが含まれ、OSによってスクリプトを使い分けるように見受けられます。
しかしながら実際にはLinuxカーネルのヘッダファイルのインストール方法によってスクリプトが使い分けられているため、現状にあわせた名前に変更します。
この変更後もビルドする際は
utils/build_install.bash
を実行するのみで、ほとんどのユーザの操作は変わりません。The current installation script file name includes keywords such as "raspbian" and "ubuntu" and seems to be separate for different operating systems.
However, the scripts are separated according to the installation method of the linux header file, so this PR renames them to match the current situation.
Most users will still only need to run
utils/build_install.bash
to build.build_install.raspi4ubuntu.bash
build_install_header_from_apt_raspi4.bash
build_install.ubuntu14.bash
build_install_header_from_apt_raspi2.bash
build_install.raspbian.bash
build_install_header_from_source_raspi2.bash
build_install_header_from_source_raspi4.bash
Does this close any currently open issues?
No
How has this been tested?
以下の構成で実行されるスクリプト名を確認しました。
Checked the script name to be executed in the following configuration.
build_install_header_from_apt_raspi4.bash
build_install_header_from_apt_raspi4.bash
build_install_header_from_apt_raspi2.bash
build_install_header_from_apt_raspi2.bash
build_install_header_from_source_raspi2.bash
build_install_header_from_source_raspi4.bash
Any other comments?
Checklists