summaryrefslogtreecommitdiff
path: root/morphlib/morph2.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-06-11 11:15:40 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-06-13 13:49:39 +0100
commitee28f213b63bff228bf2db0a585cac2d7c4edbfa (patch)
tree55229bdcae9b4becc6ecab16be6c597854f75823 /morphlib/morph2.py
parentd5cd1f19f6e166cdbbdb20692d1412e2b0b52876 (diff)
downloadmorph-ee28f213b63bff228bf2db0a585cac2d7c4edbfa.tar.gz
morphlib: add 'arch' field to morphologies
This is an ugly, ugly way to do this, but time is pressing. SystemBuilder checks what arch is defined in the morphology, if it is an x86 (or None for compatibility) then it will do the syslinux install stuff. This hack is needed because syslinux is x86 specific and arm often has different requirements for where the kernel must be loaded from, sometimes it is flash, sometimes it is a different partition. This will likely become board specific, but for a qemu-system-arm, the kernel should be a separate file, to be passed on the command line. Having a different 'kind' for each architecture would be a nicer way, but would require more changes, since there are various checks for morphology['kind'] == 'system'
Diffstat (limited to 'morphlib/morph2.py')
-rw-r--r--morphlib/morph2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/morph2.py b/morphlib/morph2.py
index 37e6f24f..394c27c3 100644
--- a/morphlib/morph2.py
+++ b/morphlib/morph2.py
@@ -38,6 +38,7 @@ class Morphology(object):
('description', ''),
('build-depends', None),
('build-system', 'manual'),
+ ('arch', None),
]
def __init__(self, text):