Skip to content

Commit

Permalink
base: Add /src/boot and /src/modules
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Dec 10, 2021
1 parent a78051e commit e68f69c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/createramdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def file_filter(tarinfo):
tarinfo.uid = users.get('local')
tarinfo.gid = tarinfo.uid
# Skip object files
if tarinfo.name.endswith('.so') or tarinfo.name.endswith('.o'):
if tarinfo.name.endswith('.so') or tarinfo.name.endswith('.o') or tarinfo.name.endswith('.sys'):
return None

return tarinfo
Expand All @@ -57,8 +57,8 @@ def file_filter(tarinfo):
ramdisk.add('linker',arcname='/src/linker',filter=file_filter)
ramdisk.add('lib',arcname='/src/lib',filter=file_filter)
ramdisk.add('libc',arcname='/src/libc',filter=file_filter)
#ramdisk.add('boot',arcname='/src/boot',filter=file_filter)
#ramdisk.add('modules',arcname='/src/modules',filter=file_filter)
ramdisk.add('boot',arcname='/src/boot',filter=file_filter)
ramdisk.add('modules',arcname='/src/modules',filter=file_filter)
if os.path.exists('tags'):
ramdisk.add('tags',arcname='/src/tags',filter=file_filter)
ramdisk.add('util/auto-dep.krk',arcname='/bin/auto-dep.krk',filter=file_filter)
Expand Down

0 comments on commit e68f69c

Please sign in to comment.