Makefile 632 B

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