From 6afa8e008587c6493c1d409779791e17c5db1ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Sat, 2 Jan 2021 22:54:36 +0100 Subject: [PATCH] ayufan: dev.mk: use REMOTE_DIR ayufan: dev.mk: fix `kernel-update-modules` --- dev.mk | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dev.mk b/dev.mk index bc997547fb3255..52b44b89a5952f 100644 --- a/dev.mk +++ b/dev.mk @@ -48,19 +48,21 @@ kernel-image-and-modules: .config .scmversion kernel-package: .config .scmversion KDEB_PKGVERSION=$(KDEB_PKGVERSION) $(KERNEL_MAKE) bindeb-pkg -j$$(nproc) +REMOTE_DIR ?= root@$(REMOTE_HOST): + .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 + rsync --partial --checksum -av out/linux_modules/lib/modules/$(KERNEL_RELEASE) $(REMOTE_DIR)/lib/modules .PHONY: kernel-update-dts kernel-update-dts: .config .scmversion $(KERNEL_MAKE) dtbs -j$$(nproc) - rsync --partial --checksum --include="*.dtb" -rv arch/arm64/boot/dts/rockchip root@$(REMOTE_HOST):$(REMOTE_DIR)/boot/dtbs/$(KERNEL_RELEASE) + rsync --partial --checksum --include="*.dtb" -rv arch/arm64/boot/dts/rockchip $(REMOTE_DIR)/boot/dtbs/$(KERNEL_RELEASE) .PHONY: kernel-update 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 + rsync --partial --checksum -rv arch/arm64/boot/Image $(REMOTE_DIR)/boot/vmlinuz-$(KERNEL_RELEASE) + rsync --partial --checksum --include="*.dtb" -rv arch/arm64/boot/dts/rockchip $(REMOTE_DIR)/boot/dtbs/$(KERNEL_RELEASE) + rsync --partial --checksum -av out/linux_modules/lib/modules/$(KERNEL_RELEASE) $(REMOTE_DIR)/lib/modules