2009-05-03 16:58:06 +00:00
|
|
|
#
|
2011-03-18 13:25:32 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-07-20 18:42:12 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2007-02-28 18:25:14 +00:00
|
|
|
# UML only makes sense on linux
|
|
|
|
ifeq ($(HOST_OS),Linux)
|
|
|
|
|
|
|
|
ARCH:=$(shell uname -m | sed \
|
|
|
|
-e 's/i[3-9]86/i386/' \
|
|
|
|
-e 's/mipsel/mips/' \
|
|
|
|
-e 's/mipseb/mips/' \
|
|
|
|
-e 's/powerpc/ppc/' \
|
|
|
|
-e 's/sh[234]/sh/' \
|
|
|
|
-e 's/armeb/arm/' \
|
|
|
|
)
|
2006-11-11 23:11:02 +00:00
|
|
|
BOARD:=uml
|
|
|
|
BOARDNAME:=User Mode Linux
|
2017-01-24 11:44:59 +00:00
|
|
|
FEATURES:=squashfs ext4 audio source-only
|
2011-05-06 12:37:36 +00:00
|
|
|
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
|
2006-11-11 23:11:02 +00:00
|
|
|
|
2016-01-17 10:41:52 +00:00
|
|
|
KERNEL_PATCHVER:=4.4
|
2007-06-28 05:52:00 +00:00
|
|
|
|
2007-09-08 19:55:42 +00:00
|
|
|
include $(INCLUDE_DIR)/target.mk
|
2007-03-03 01:22:09 +00:00
|
|
|
|
2015-09-27 17:29:38 +00:00
|
|
|
define Kernel/Patch
|
|
|
|
mkdir -p $(LINUX_DIR)/arch/um/include/uapi
|
|
|
|
mv $(LINUX_DIR)/arch/um/include/asm $(LINUX_DIR)/arch/um/include/uapi/
|
|
|
|
$(Kernel/Patch/Default)
|
|
|
|
endef
|
|
|
|
|
2011-04-17 21:47:49 +00:00
|
|
|
LINUX_TARGET_CONFIG:=$(CURDIR)/config/$(ARCH)
|
|
|
|
|
2016-11-22 16:53:36 +00:00
|
|
|
DEFAULT_PACKAGES += wpad-mini kmod-mac80211-hwsim mkf2fs e2fsprogs
|
2009-01-12 09:57:02 +00:00
|
|
|
|
2007-02-28 18:25:14 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-08 19:55:42 +00:00
|
|
|
$(eval $(call BuildTarget))
|