Skip to content

Commit

Permalink
Changed make copy command to copy driver into overlay dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dayeol committed Jun 18, 2019
1 parent 3eeaf65 commit 1ea0cf3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
DISK_IMAGE = ../busybear-linux/busybear.bin
MOUNT_DIR = ./tmp_busybear
OVERLAY_DIR=../buildroot_overlay
DRIVER = keystone-driver.ko

ifneq ($(KERNELRELEASE),)
Expand All @@ -18,11 +17,7 @@ default:
$(MAKE) -C $(KDIR) ARCH=riscv SUBDIRS=$(PWD) modules

copy:
mkdir -p $(MOUNT_DIR)
sudo mount $(DISK_IMAGE) $(MOUNT_DIR)
sudo cp $(DRIVER) $(MOUNT_DIR)/root/
sudo umount $(MOUNT_DIR)
rmdir $(MOUNT_DIR)
cp $(DRIVER) $(OVERLAY_DIR)


endif
Expand Down

0 comments on commit 1ea0cf3

Please sign in to comment.