-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
黄宇扬
committed
Apr 22, 2024
1 parent
2a16863
commit 6eb96e8
Showing
9 changed files
with
2,310 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
obj-m += tfacc2.o | ||
PWD=$(shell pwd) | ||
|
||
#LINUX_VERSION=$(LINUX_VERSION) | ||
KERNEL_VERSION=$(shell uname -r) | ||
|
||
ifeq ($(LINUX_VERSION),Ubuntu) | ||
KDIR=/usr/src/linux-headers-$(KERNEL_VERSION) | ||
else | ||
KDIR=/usr/src/kernels/$(KERNEL_VERSION)/ | ||
endif | ||
|
||
|
||
install: | ||
bash ./build_driver.sh | ||
|
||
tfacc2: | ||
make -C $(KDIR) M=$(PWD) modules | ||
make -C $(KDIR) M=$(PWD) modules_install | ||
depmod -A | ||
clean: | ||
make -C $(KDIR) M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
base_dir=$( | ||
cd "$(dirname "$0")" || exit | ||
pwd | ||
) | ||
cd "${base_dir}" || exit | ||
|
||
cp ../../tfsmi /usr/local/bin/tfsmi | ||
cp ../../tfsmbios /usr/local/bin/tfsmbios | ||
|
||
output_path=result/$1 | ||
|
||
rm -rf "${output_path}" | ||
mkdir -p "${output_path}" | ||
cp -r $(ls | grep -v result | xargs) "${output_path}" | ||
|
||
cd "${output_path}" || exit | ||
|
||
export LINUX_VERSION=$(cat /etc/issue | awk -F ' ' '{print $1}' | awk 'NR==1') | ||
make tfacc2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/huangyuyang/Downloads/new/tfdl2/driver/tfacc2/tfacc2.ko |
Oops, something went wrong.