2
0

Makefile 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:=squashfs ext4 audio source-only
  22. MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  23. KERNEL_PATCHVER:=4.4
  24. include $(INCLUDE_DIR)/target.mk
  25. define Kernel/Patch
  26. mkdir -p $(LINUX_DIR)/arch/um/include/uapi
  27. mv $(LINUX_DIR)/arch/um/include/asm $(LINUX_DIR)/arch/um/include/uapi/
  28. $(Kernel/Patch/Default)
  29. endef
  30. LINUX_TARGET_CONFIG:=$(CURDIR)/config/$(ARCH)
  31. DEFAULT_PACKAGES += wpad-mini kmod-mac80211-hwsim mkf2fs e2fsprogs
  32. endif
  33. $(eval $(call BuildTarget))