Skip to content

Commit 9fda165

Browse files
committed
Add support for creating packaged files for device
The utagboot-*.tar.gz can be installed into /boot/utagboot and the utag can be pointed to start /boot/utagboot/init as the start-up script. If the kexec is not needed, installed distro init will continue.
1 parent c992a0c commit 9fda165

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ kexec_modules_version=0.3
99
kexec_modules=ddroid4-mainline-kexec-$(kexec_modules_version).tar.xz
1010
stock_kernel_modules=$(target)lib/modules/3.0.8-g448a95f/kernel/
1111

12+
version=$$(date +%Y-%m-%d)
13+
1214
install: utags
1315
fastboot flash utags utags.bin
1416

@@ -63,5 +65,16 @@ install_modules: download_files
6365
cp download/droid4-mainline-kexec-$(kexec_modules_version)/kexec.ko \
6466
$(stock_kernel_modules)
6567

68+
init_script:
69+
cp scripts/device_init.sh $(target)/init
70+
chmod a+x $(target)/init
71+
72+
package: utagboot_utags init_script install_modules
73+
cp README $(target)
74+
cd output && tar zcf ../utagboot-bin-${version}.tar.gz \
75+
--wildcards --owner=0 --group=0 utagboot
76+
sha256sum utagboot-bin-${version}.tar.gz > \
77+
utagboot-bin-${version}.sha256
78+
6679
clean:
6780
rm -f $(target)utags*.bin

0 commit comments

Comments
 (0)