Skip to content

Commit 1b46bd8

Browse files
committed
Add support for fetching the stock kernel kexec modules
These are needed to package utagboot that will work on the partition that it gets installed.
1 parent c00cf92 commit 1b46bd8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
output
2+
download

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ rootwait ro init=/sbin/init
44
cmdline=$(def_cmd) root=/dev/mmcblk1p23
55
target=output/utagboot/
66

7+
kexec_modules_url=http://muru.com/linux/d4/
8+
kexec_modules_version=0.3
9+
kexec_modules=ddroid4-mainline-kexec-$(kexec_modules_version).tar.xz
10+
stock_kernel_modules=$(target)lib/modules/3.0.8-g448a95f/kernel/
11+
712
install: utags
813
fastboot flash utags utags.bin
914

@@ -15,5 +20,22 @@ utags: clean
1520
scripts/utagboot.sh $(target)utags.bin "$(cmdline)"
1621
hexdump -C $(target)utags.bin
1722

23+
download_files:
24+
mkdir -p download
25+
if [ ! -f download/$(kexec_modules) ]; then \
26+
curl $(kexec_modules_url)$(kexec_modules) \
27+
-o download/$(kexec_modules); \
28+
tar xf download/$(kexec_modules) -C download/; \
29+
fi
30+
31+
install_modules: download_files
32+
mkdir -p $(stock_kernel_modules)
33+
cp download/droid4-mainline-kexec-$(kexec_modules_version)/uart.ko \
34+
$(stock_kernel_modules)
35+
cp download/droid4-mainline-kexec-$(kexec_modules_version)/arm_kexec.ko \
36+
$(stock_kernel_modules)
37+
cp download/droid4-mainline-kexec-$(kexec_modules_version)/kexec.ko \
38+
$(stock_kernel_modules)
39+
1840
clean:
1941
rm -f $(target)utags*.bin

0 commit comments

Comments
 (0)