Browse Source

Makefile: Cancel the deletion of .config

Cancel the deletion of .config

Signed-off-by: arvin.zhu <arvin.zhu@starfivetech.com>
arvin.zhu 1 year ago
parent
commit
8c4031f405
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -126,7 +126,7 @@ fpga: all
 fpga: HWBOARD_FLAG := HWBOARD_FPGA
 
 $(buildroot_initramfs_wrkdir)/.config: $(buildroot_srcdir)
-	rm -rf $(dir $@)
+#	rm -rf $(dir $@)
 	mkdir -p $(dir $@)
 	cp $(buildroot_initramfs_config) $@
 	$(MAKE) -C $< RISCV=$(RISCV) O=$(buildroot_initramfs_wrkdir) olddefconfig
@@ -144,7 +144,7 @@ buildroot_initramfs-menuconfig: $(buildroot_initramfs_wrkdir)/.config $(buildroo
 # use buildroot_initramfs toolchain
 # TODO: fix path and conf/buildroot_rootfs_config
 $(buildroot_rootfs_wrkdir)/.config: $(buildroot_srcdir) $(buildroot_initramfs_tar)
-	rm -rf $(dir $@)
+#	rm -rf $(dir $@)
 	mkdir -p $(dir $@)
 	cp $(buildroot_rootfs_config) $@
 	$(MAKE) -C $< RISCV=$(RISCV) PATH=$(RVPATH) O=$(buildroot_rootfs_wrkdir) olddefconfig