Makefile 678 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (C) 2006 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:=ext2
  22. LINUX_CONFIG:=$(CURDIR)/config/$(ARCH)
  23. LINUX_VERSION:=2.6.30.8
  24. include $(INCLUDE_DIR)/target.mk
  25. DEFAULT_PACKAGES += hostapd-mini kmod-mac80211-hwsim
  26. endif
  27. $(eval $(call BuildTarget))