Skip to contentSkip to conversation

console-at91sam9-image: console-image with apps

PATCH In review Ulf Samuelsson 2 participants 2 messages Mar 12, 2010 – Mar 13, 2010 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 console-at91sam9-image: console-image with apps

From: Nicolas Ferre <[email protected]>

Create a derivative of console-image with more applications

+       usbview
+       mplayer
+       thttpd
+       madplay
+       alsa-utils-aplay
+       alsa-utils-amixer
+       iperf
+       dosfstools
+       mtd-utils
---
 recipes/images/console-at91sam9-image.bb |   34 ++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
 create mode 100644 recipes/images/console-at91sam9-image.bb
recipes/images/console-at91sam9-image.bb new file +34 -0
new file mode 100644
index 0000000..7aae0fb
@@ -0,0 +1,34 @@
+#Angstrom bootstrap at91sam9 image
+
+IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
+
+ANGSTROM_EXTRA_INSTALL += " \
+	usbview \
+	mplayer \
+	thttpd \
+	madplay \
+	alsa-utils-aplay \
+	alsa-utils-amixer \
+	iperf \
+	dosfstools \
+	mtd-utils \
+#	nbench-byte \
+	"
+
+DEPENDS = "task-base-extended \
+           ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
+	   "
+
+IMAGE_INSTALL = "task-base-extended \
+	    ${ANGSTROM_EXTRA_INSTALL} \
+	    ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
+	   "
+
+export IMAGE_BASENAME = "console-at91sam9-image"
+IMAGE_LINGUAS = ""
+
+#we dont need the kernel in the image
+ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "
+
+inherit image
+
Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 32 lines · Ulf Samuelsson

From: Nicolas Ferre<[email protected]>

Create a derivative of console-image with more applications

(quoted diff) +9 -0
+       usbview
+       mplayer
+       thttpd
+       madplay
+       alsa-utils-aplay
+       alsa-utils-amixer
+       iperf
+       dosfstools
+       mtd-utils
---
  recipes/images/console-at91sam9-image.bb |   34 ++++++++++++++++++++++++++++++
  1 files changed, 34 insertions(+), 0 deletions(-)

create mode 100644 recipes/images/console-at91sam9-image.bb

recipes/images/console-at91sam9-image.bb new file +6 -0
new file mode 100644
index 0000000..7aae0fb
@@ -0,0 +1,34 @@
+#Angstrom bootstrap at91sam9 image
+
+IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
+
+ANGSTROM_EXTRA_INSTALL += " \
+	usbview \

recipes/images/console-at91sam9-image.bb line 16

Quoted 10 lines
recipes/images/console-at91sam9-image.bb new file +10 -0
+	mplayer \
+	thttpd \
+	madplay \
+	alsa-utils-aplay \
+	alsa-utils-amixer \
+	iperf \
+	dosfstools \
+	mtd-utils \
+#	nbench-byte \
+	"

You should add these packages to IMAGE_INSTALL and (if you want the user to insert additional packages via an env var) add the var IMAGE_EXTRA_INSTALL to the IMAGE_INSTALL list. We do not want to keep adding the ANGSTROM_EXTRA_INSTALL variable to recipes that are not distro specific.

Philip

Quoted 18 lines
recipes/images/console-at91sam9-image.bb new file +18 -0
+
+DEPENDS = "task-base-extended \
+           ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
+	   "
+
+IMAGE_INSTALL = "task-base-extended \
+	    ${ANGSTROM_EXTRA_INSTALL} \
+	    ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
+	   "
+
+export IMAGE_BASENAME = "console-at91sam9-image"
+IMAGE_LINGUAS = ""
+
+#we dont need the kernel in the image
+ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "
+
+inherit image
+