summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-07-02 01:20:36 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-07-02 18:30:28 +0300
commita95712d8e7728c5cb5ba750f5d904af110ab0d0c (patch)
treea6d4ad33c8c2aec389010d8a752d381d56a39839
parentf0d4934ed84a6334944c92184878862de12172c8 (diff)
downloadmeta-raspberrypi-a95712d8e7728c5cb5ba750f5d904af110ab0d0c.tar.gz
sdcard_image-rpi.bbclass: Change to be usable with any image
Instead of being inherited by a specific image recipe, this class can now be inherited globally in the machine configuration, allowing it to be used with any image. This means we can remove "inherit image", and we can also remove the IMAGE_FSTYPES modification since the machine config does this already. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--classes/sdcard_image-rpi.bbclass2
-rwxr-xr-xconf/machine/raspberrypi.conf1
2 files changed, 1 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index ef27ac6..af18aab 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -8,8 +8,6 @@
8# BOOT_SPACE - SDIMG_SIZE - rootfs 8# BOOT_SPACE - SDIMG_SIZE - rootfs
9# 9#
10 10
11inherit image_types
12
13# Set kernel and boot loader 11# Set kernel and boot loader
14IMAGE_BOOTLOADER ?= "bcm2835-bootfiles" 12IMAGE_BOOTLOADER ?= "bcm2835-bootfiles"
15 13
diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf
index 4508a42..a64104b 100755
--- a/conf/machine/raspberrypi.conf
+++ b/conf/machine/raspberrypi.conf
@@ -9,6 +9,7 @@ require conf/machine/include/tune-arm1176jzf-s.inc
9 9
10GUI_MACHINE_CLASS = "bigscreen" 10GUI_MACHINE_CLASS = "bigscreen"
11 11
12INHERIT += "sdcard_image-rpi"
12IMAGE_FSTYPES += "tar.bz2 ext3 rpi-sdimg" 13IMAGE_FSTYPES += "tar.bz2 ext3 rpi-sdimg"
13 14
14SERIAL_CONSOLE = "115200 ttyAMA0" 15SERIAL_CONSOLE = "115200 ttyAMA0"