Skip to content

Commit

Permalink
ayufan: dev.mk: add kernel-update-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jan 19, 2021
1 parent d64f4d3 commit c6fe5f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ kernel-image-and-modules: .config .scmversion
kernel-package: .config .scmversion
KDEB_PKGVERSION=$(KDEB_PKGVERSION) $(KERNEL_MAKE) bindeb-pkg -j$$(nproc)

.PHONY: kernel-update-modules
kernel-update-modules: .config .scmversion
$(KERNEL_MAKE) modules -j$$(nproc)
$(KERNEL_MAKE) modules_install INSTALL_MOD_PATH=$(CURDIR)/out/linux_modules
rsync --partial --checksum -av out/linux_modules/lib/modules/$(KERNEL_RELEASE) root@$(REMOTE_HOST):$(REMOTE_DIR)/lib/modules

.PHONY: kernel-update-dts
kernel-update-dts: .config .scmversion
$(KERNEL_MAKE) dtbs -j$$(nproc)
Expand All @@ -57,4 +63,4 @@ kernel-update-dts: .config .scmversion
kernel-update-image: .scmversion
rsync --partial --checksum -rv arch/arm64/boot/Image root@$(REMOTE_HOST):$(REMOTE_DIR)/boot/vmlinuz-$(KERNEL_RELEASE)
rsync --partial --checksum --include="*.dtb" -rv arch/arm64/boot/dts/rockchip root@$(REMOTE_HOST):$(REMOTE_DIR)/boot/dtbs/$(KERNEL_RELEASE)
rsync --partial --checksum -av out/linux_modules/lib/modules/$(KERNEL_RELEASE) root@$(REMOTE_HOST):$(REMOTE_DIR)/lib/modules/$(KERNEL_RELEASE)
rsync --partial --checksum -av out/linux_modules/lib/modules/$(KERNEL_RELEASE) root@$(REMOTE_HOST):$(REMOTE_DIR)/lib/modules

0 comments on commit c6fe5f4

Please sign in to comment.