diff mbox

[Branch,~linaro-maintainers/linaro-image-tools/trunk] Rev 321: Raise an assertion error when _get_bootcmd() is called with a d_img_data but

Message ID 20110421131916.9911.15995.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Loïc Minier April 21, 2011, 1:19 p.m. UTC
------------------------------------------------------------
revno: 321
committer: Loïc Minier <lool@dooz.org>
branch nick: linaro-image-tools
timestamp: Thu 2011-04-21 14:54:25 +0200
message:
  Raise an assertion error when _get_bootcmd() is called with a d_img_data but
  cls.dtb_addr is None.
modified:
  linaro_image_tools/media_create/boards.py


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-maintainers/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-maintainers/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro_image_tools/media_create/boards.py'
--- linaro_image_tools/media_create/boards.py	2011-04-20 14:42:47 +0000
+++ linaro_image_tools/media_create/boards.py	2011-04-21 12:54:25 +0000
@@ -255,6 +255,8 @@ 
             "fatload mmc %(mmc_option)s %(initrd_addr)s uInitrd; "
             % replacements)
         if d_img_data is not None:
+            assert cls.dtb_addr is not None, (
+                "Need a dtb_addr when passing d_img_data")
             boot_script += (
                 "fatload mmc %(mmc_option)s %(dtb_addr)s board.dtb; "
                 "bootm %(kernel_addr)s %(initrd_addr)s %(dtb_addr)s"