Browse Source

feat(image): add busybox to mount image

greatbridf 1 year ago
parent
commit
915f90251e
3 changed files with 2 additions and 0 deletions
  1. 2 0
      CMakeLists.txt
  2. BIN
      busybox
  3. BIN
      busybox-minimal

+ 2 - 0
CMakeLists.txt

@@ -126,6 +126,8 @@ add_custom_target(boot.img
     COMMAND mcopy -i boot.img@@1M ${CMAKE_BINARY_DIR}/user-space-program/priv-test.out ::priv
     COMMAND mcopy -i boot.img@@1M ${CMAKE_BINARY_DIR}/user-space-program/lazybox.out ::lazybox
     COMMAND mcopy -i boot.img@@1M ${CMAKE_BINARY_DIR}/user-space-program/lazybox.out ::pwd
+    COMMAND mcopy -i boot.img@@1M ${CMAKE_SOURCE_DIR}/busybox-minimal ::bb
+    COMMAND mcopy -i boot.img@@1M ${CMAKE_SOURCE_DIR}/busybox ::busybox
 )
 
 add_custom_command(OUTPUT run

BIN
busybox


BIN
busybox-minimal