From e483dd283690de4fe411b8400ca833d425330dfc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20B=C3=BCsch?= <mb@bu3sch.de>
Date: Thu, 26 Aug 2010 19:54:08 +0000
Subject: [PATCH] Improve n810 profile

SVN-Revision: 22817
---
 target/linux/omap24xx/Makefile                |  2 +-
 target/linux/omap24xx/profiles/100-n810.mk    | 20 ++++++++++++-----
 .../linux/omap24xx/profiles/110-n810-gui.mk   | 22 +++++++++++++++++++
 3 files changed, 37 insertions(+), 7 deletions(-)
 create mode 100644 target/linux/omap24xx/profiles/110-n810-gui.mk

diff --git a/target/linux/omap24xx/Makefile b/target/linux/omap24xx/Makefile
index 901d24b5d1..29be9e1b8e 100644
--- a/target/linux/omap24xx/Makefile
+++ b/target/linux/omap24xx/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=arm
 BOARD:=omap24xx
 BOARDNAME:=TI OMAP-24xx
-FEATURES:=squashfs jffs2 usb usbgadget
+FEATURES:=targz squashfs jffs2 usb usbgadget display gpio audio
 
 LINUX_VERSION:=2.6.35.3
 
diff --git a/target/linux/omap24xx/profiles/100-n810.mk b/target/linux/omap24xx/profiles/100-n810.mk
index 6eddc0501d..f424b9723b 100644
--- a/target/linux/omap24xx/profiles/100-n810.mk
+++ b/target/linux/omap24xx/profiles/100-n810.mk
@@ -5,13 +5,21 @@
 # See /LICENSE for more information.
 #
 
-define Profile/n810
-  NAME:=Nokia n810
-  PACKAGES:=
+define Profile/n810-base
+  NAME:=Nokia n810 (base)
+  PACKAGES:= \
+	block-hotplug \
+	gpsd \
+	ip iw wireless-tools kmod-p54-spi wpa-supplicant \
+	dnsmasq dropbear \
+	kmod-fs-vfat kmod-fs-msdos \
+	kmod-input-evdev \
+	kmod-leds-gpio \
+	kmod-usb-tahvo kmod-usb-eth-gadget kmod-usb-net kmod-usb-net-cdc-ether
 endef
 
-define Profile/n810/Description
-	Package set compatible with Nokia n810 hardware
+define Profile/n810-base/Description
+	Minimal package set for Nokia n810 hardware.
 endef
-$(eval $(call Profile,n810))
+$(eval $(call Profile,n810-base))
 
diff --git a/target/linux/omap24xx/profiles/110-n810-gui.mk b/target/linux/omap24xx/profiles/110-n810-gui.mk
new file mode 100644
index 0000000000..b04db3c9e5
--- /dev/null
+++ b/target/linux/omap24xx/profiles/110-n810-gui.mk
@@ -0,0 +1,22 @@
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/n810-gui
+  $(call Profile/n810-base)
+  NAME:=Nokia n810 (GUI)
+  PACKAGES+= \
+	xserver-xorg xinit xauth xterm \
+	xf86-video-omapfb xf86-input-tslib xf86-input-evdev \
+	openbox lxpanel \
+	pwrtray
+endef
+
+define Profile/n810-gui/Description
+	Graphical user interface package set for Nokia n810 hardware.
+endef
+$(eval $(call Profile,n810-gui))
+
-- 
GitLab