Makefile 743 B

123456789101112131415161718192021222324252627282930313233343536
  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. include $(INCLUDE_DIR)/host.mk
  9. # UML only makes sense on linux
  10. ifeq ($(HOST_OS),Linux)
  11. ARCH:=$(shell uname -m | sed \
  12. -e 's/i[3-9]86/i386/' \
  13. -e 's/mipsel/mips/' \
  14. -e 's/mipseb/mips/' \
  15. -e 's/powerpc/ppc/' \
  16. -e 's/sh[234]/sh/' \
  17. -e 's/armeb/arm/' \
  18. )
  19. BOARD:=uml
  20. BOARDNAME:=User Mode Linux
  21. FEATURES:=ext4 audio
  22. MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  23. KERNEL_PATCHVER:=3.14
  24. include $(INCLUDE_DIR)/target.mk
  25. LINUX_TARGET_CONFIG:=$(CURDIR)/config/$(ARCH)
  26. DEFAULT_PACKAGES += wpad-mini kmod-mac80211-hwsim
  27. endif
  28. $(eval $(call BuildTarget))