make overlay scripts use kernel modules and executables relative to pwd in preparison for 9p

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-13 00:00:00 +00:00
parent cd9c22f451
commit ddecb1bf5d
27 changed files with 59 additions and 43 deletions

View File

@@ -179,17 +179,24 @@ def main(args, extra_args=None):
if not args.baseline:
buildroot_configs.extend([
'BR2_GLOBAL_PATCH_DIR="{}"'.format(
path_relative_to_buildroot(os.path.join(common.root_dir, 'patches', 'global'))),
path_relative_to_buildroot(os.path.join(common.root_dir, 'patches', 'global'))
),
'BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="{}"'.format(
path_relative_to_buildroot(os.path.join(common.root_dir, 'busybox_config_fragment'))),
path_relative_to_buildroot(os.path.join(common.root_dir, 'busybox_config_fragment'))
),
'BR2_PACKAGE_OVERRIDE_FILE="{}"'.format(
path_relative_to_buildroot(os.path.join(common.root_dir, 'buildroot_override'))),
'BR2_ROOTFS_OVERLAY="{}"'.format(
path_relative_to_buildroot(common.rootfs_overlay_dir)),
path_relative_to_buildroot(os.path.join(common.root_dir, 'buildroot_override'))
),
'BR2_ROOTFS_OVERLAY="{} {}"'.format(
path_relative_to_buildroot(common.rootfs_overlay_dir),
path_relative_to_buildroot(common.out_rootfs_overlay_dir),
),
'BR2_ROOTFS_POST_BUILD_SCRIPT="{}"'.format(
path_relative_to_buildroot(os.path.join(common.root_dir, 'rootfs-post-build-script'))),
path_relative_to_buildroot(os.path.join(common.root_dir, 'rootfs-post-build-script'))
),
'BR2_ROOTFS_USERS_TABLES="{}"'.format(
path_relative_to_buildroot(os.path.join(common.root_dir, 'user_table'))),
path_relative_to_buildroot(os.path.join(common.root_dir, 'user_table'))
),
])
if args.kernel_modules:
buildroot_configs.append('BR2_PACKAGE_LKMC=y')