浏览代码

uml: define "generic" subtarget

UML didn't have a subtarget defined.

While this compiled fine, the patch caused funny filenames
for the generated files to appear:
 - "openwrt-uml--vmlinux"
 - "openwrt-uml--squashfs.img"
 - "openwrt-uml--ext4.img"
 - ...

since "generic" is implied anyway, let's just set it.

Fixes: d997477775bf ("treewide: remove implicit SUBTARGET")
Signed-off-by: Christian Lamparter <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/15713
Signed-off-by: Christian Marangi <[email protected]>
Christian Lamparter 1 年之前
父节点
当前提交
cef30e225d
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      target/linux/uml/Makefile
  2. 1 1
      target/linux/uml/README.md
  3. 1 0
      target/linux/uml/generic/target.mk

+ 1 - 0
target/linux/uml/Makefile

@@ -12,6 +12,7 @@ ARCH:=x86_64
 BOARD:=uml
 BOARD:=uml
 BOARDNAME:=User Mode Linux
 BOARDNAME:=User Mode Linux
 FEATURES:=audio ext4 rootfs-part squashfs
 FEATURES:=audio ext4 rootfs-part squashfs
+SUBTARGETS:=generic
 
 
 KERNEL_PATCHVER:=6.1
 KERNEL_PATCHVER:=6.1
 KERNEL_TESTING_PATCHVER:=6.6
 KERNEL_TESTING_PATCHVER:=6.6

+ 1 - 1
target/linux/uml/README.md

@@ -20,7 +20,7 @@ In your bin directory you will find a Kernel and an root file system when it's
 finished. Just run it like this:-
 finished. Just run it like this:-
 
 
 ```shell
 ```shell
-./openwrt-uml-vmlinux ubd0=openwrt-uml-squashfs.img
+./openwrt-uml-generic-vmlinux ubd0=openwrt-uml-generic-squashfs.img
 ```
 ```
 
 
 The uml will start and eventually the serial console of the uml will be at your
 The uml will start and eventually the serial console of the uml will be at your

+ 1 - 0
target/linux/uml/generic/target.mk

@@ -0,0 +1 @@
+BOARDNAME:=Generic