Makefile 919 B

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