=== modified file 'linaro_image_tools/hwpack/config.py'
@@ -602,9 +602,7 @@
def _validate_boot_script(self):
boot_script = self.boot_script
if not boot_script:
- raise HwpackConfigError(
- "No boot_script in the [%s] section" % \
- self.MAIN_SECTION)
+ return
else:
self._assert_matches_pattern(
self.PATH_REGEX, boot_script, "Invalid path: %s" % boot_script)
=== modified file 'linaro_image_tools/hwpack/tests/test_config.py'
@@ -242,16 +242,6 @@
"initrd_file = \n")
self.assertValidationError("No initrd_file in the [hwpack] section", config)
- def test_validate_empty_boot_script(self):
- config = self.get_config(self.valid_start_v2 +
- "u-boot-package = u-boot-linaro-s5pv310\n" \
- "u-boot-file = u-boot.bin\n"
- "partition_layout = bootfs_rootfs\n"\
- "kernel_file = boot/vmlinuz-3.0.0-1002-linaro-omap\n"\
- "mmc_id = 0:1\n"\
- "initrd_file = boot/initrd.img-3.0.0-1002-linaro-omap\n")
- self.assertValidationError("No boot_script in the [hwpack] section", config)
-
def test_validate_invalid_boot_script(self):
config = self.get_config(self.valid_start_v2 +
"u-boot-package = u-boot-linaro-s5pv310\n" \
=== modified file 'linaro_image_tools/media_create/boards.py'
@@ -684,8 +684,8 @@
boot_script_path = os.path.join(boot_dir, cls.boot_script)
make_boot_script(boot_env, boot_script_path)
- # Only used for Omap and Igep, will this be bad for the other boards?
- make_boot_ini(boot_script_path, boot_dir)
+ # Only used for Omap, will this be bad for the other boards?
+ make_boot_ini(boot_script_path, boot_dir)
if (cls.snowball_startup_files_config is not None and
cls.board != 'snowball_sd'):