Makefile 707 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. # UML only makes sense on linux
  9. ifeq ($(HOST_OS),Linux)
  10. ARCH:=$(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. )
  18. BOARD:=uml
  19. BOARDNAME:=User Mode Linux
  20. FEATURES:=squashfs ext4 audio source-only
  21. KERNEL_PATCHVER:=5.4
  22. include $(INCLUDE_DIR)/target.mk
  23. LINUX_TARGET_CONFIG:=$(CURDIR)/config/$(ARCH)
  24. DEFAULT_PACKAGES += wpad-basic-wolfssl kmod-mac80211-hwsim mkf2fs e2fsprogs
  25. endif
  26. $(eval $(call BuildTarget))