2006-07-21 02:42:12 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
2007-03-01 02:25:14 +08:00
|
|
|
include $(INCLUDE_DIR)/host.mk
|
2006-07-21 02:42:12 +08:00
|
|
|
|
2007-03-01 02:25:14 +08: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-12 07:11:02 +08:00
|
|
|
BOARD:=uml
|
|
|
|
BOARDNAME:=User Mode Linux
|
2007-07-18 21:01:32 +08:00
|
|
|
FEATURES:=broken ext2
|
2007-03-01 02:25:14 +08:00
|
|
|
LINUX_CONFIG:=$(CURDIR)/config/$(ARCH)
|
2006-11-12 07:11:02 +08:00
|
|
|
|
2007-08-21 18:06:01 +08:00
|
|
|
LINUX_VERSION:=2.6.22.4
|
2007-06-28 13:52:00 +08:00
|
|
|
|
2006-07-21 02:42:12 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel-build.mk
|
2007-03-03 09:22:09 +08:00
|
|
|
|
|
|
|
# include the profiles
|
|
|
|
-include profiles/*.mk
|
|
|
|
|
2007-03-01 02:25:14 +08:00
|
|
|
endif
|
|
|
|
|
2006-10-19 14:20:55 +08:00
|
|
|
$(eval $(call BuildKernel))
|