blob: ae8ea5d309152de823624685d5cd82c9d4cc84e5 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001# SPDX-License-Identifier: GPL-2.0-only
2#
3# Copyright (C) 2006-2011 OpenWrt.org
4
5include $(TOPDIR)/rules.mk
6
7# UML only makes sense on linux
8ifeq ($(HOST_OS),Linux)
9
10ARCH:=$(shell uname -m | sed \
11 -e 's/i[3-9]86/i386/' \
12 -e 's/mipsel/mips/' \
13 -e 's/mipseb/mips/' \
14 -e 's/powerpc/ppc/' \
15 -e 's/sh[234]/sh/' \
16 -e 's/armeb/arm/' \
17)
18BOARD:=uml
19BOARDNAME:=User Mode Linux
20FEATURES:=squashfs ext4 audio source-only
21
22KERNEL_PATCHVER:=5.4
23
24include $(INCLUDE_DIR)/target.mk
25
26LINUX_TARGET_CONFIG:=$(CURDIR)/config/$(ARCH)
27
28DEFAULT_PACKAGES += wpad-basic-wolfssl kmod-mac80211-hwsim mkf2fs e2fsprogs
29
30endif
31
32$(eval $(call BuildTarget))