mirror of
https://github.com/oasislinux/oasis.git
synced 2025-12-14 20:35:43 +01:00
Move oasis git helpers to skeleton package
This commit is contained in:
7
gen.lua
7
gen.lua
@@ -16,7 +16,6 @@ toolchain(config.target)
|
||||
|
||||
subgen 'probe'
|
||||
subgen 'pkg'
|
||||
subgen 'src'
|
||||
|
||||
build('awk', '$outdir/root.perms', {'$outdir/tree.fspec', '|', '$basedir/scripts/perms.awk'}, {
|
||||
expr='-f $basedir/scripts/perms.awk',
|
||||
@@ -31,6 +30,12 @@ build('phony', 'commit', '$builddir/root.commit')
|
||||
build('fspec-sort', '$outdir/root.fspec', {'$outdir/tree.fspec', '|', '$builddir/pkg/fspec-sync/host/fspec-sort'})
|
||||
build('fspec-tar', '$outdir/root.tar.zst', {'$outdir/root.fspec', '|', '$builddir/pkg/fspec-sync/host/fspec-tar'})
|
||||
|
||||
--build('awk', '$outdir/root.sqfslist', {'$outdir/root.fspec', '|', '$basedir/scripts/squashfs.awk'}, {
|
||||
-- expr='-f $basedir/scripts/squashfs.awk',
|
||||
--})
|
||||
--rule('gensquashfs', 'gensquashfs -F $in -D . -f -c gzip $out')
|
||||
--build('gensquashfs', '$outdir/root.squashfs', {'$outdir/root.sqfslist'})
|
||||
|
||||
build('phony', 'build.ninja', 'ninja', {generator='1'})
|
||||
|
||||
io.write('default $builddir/root.tree\n')
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
set('srcdir', '$dir')
|
||||
|
||||
dir('bin', '755')
|
||||
sym('bin/plumb', '../etc/plumb')
|
||||
dir('boot', '755')
|
||||
@@ -17,3 +19,6 @@ dir('var/log', '755')
|
||||
sym('usr/bin', '../bin')
|
||||
|
||||
gitfile('.gitignore', '644', '$dir/gitignore')
|
||||
|
||||
file('libexec/applyperms', '755', exe('applyperms', {'applyperms.c'}))
|
||||
file('libexec/mergeperms', '755', exe('mergeperms', {'mergeperms.c'}))
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
set('srcdir', '$dir')
|
||||
cflags{
|
||||
'-std=c11', '-Wall', '-Wextra', '-Wpedantic', '-Wno-unused-parameter',
|
||||
}
|
||||
|
||||
file('libexec/applyperms', '755', exe('applyperms', {'applyperms.c'}))
|
||||
file('libexec/mergeperms', '755', exe('mergeperms', {'mergeperms.c'}))
|
||||
Reference in New Issue
Block a user