Jóhann B. Guðmundsson
0eca191405
chore(tree): move html files to the dosc directory
...
Moving the html files into the docs directory.
2021-05-06 16:59:14 +02:00
Jóhann B. Guðmundsson
3420a70dee
chore(install): move install to src directory
...
Moving install to the src directory
2021-05-06 16:25:32 +02:00
Jóhann B. Guðmundsson
0620677238
chore(tree): move package build files in their own directory
...
Creating pkgbuild directory and move relevant files there.
2021-05-04 15:39:34 +02:00
Harald Hoyer
625f11dca7
chore: skip rpmbuild, if there is no rpmbuild installed
...
On non-rpm distributions this does not make sense.
2021-05-04 10:39:41 +02:00
Harald Hoyer
44ca04c843
chore: fix indent-c path for src directory
2021-05-04 10:39:28 +02:00
Jóhann B. Guðmundsson
9f9bf8a178
chore(tree): move src into their own src directory
...
Moving sources into their src directory
2021-05-04 10:02:04 +02:00
Jóhann B. Guðmundsson
a02d17f7af
chore(tree): move tools into their own directory
...
Moving tools into their own directory
2021-05-04 10:01:14 +02:00
Jóhann B. Guðmundsson
49717458e8
chore(tree): move kernel install files into its own directory
...
Move kernel install files into it's own directory within the tree.
2021-05-04 09:24:16 +02:00
Jóhann B. Guðmundsson
e5ac28a5be
chore(tree): move man pages into a man directory
...
Moving man pages into it's own man directory within the tree
2021-05-04 09:23:51 +02:00
Jóhann B. Guðmundsson
b544bd6bfa
chore(tree): move shell completion into a directory
...
Moving shell completion into it's own directory for a more organized and
cleaner tree.
2021-05-04 09:22:22 +02:00
Harald Hoyer
43df4ee274
feat(mkinitrd): remove mkinitrd
...
It was not working anyway, so nobody used it for years.
If it is not used, just remove it.
mkinitrd-suse.sh will be maintained by SUSE as it is SUSE specific
anyway.
2021-03-30 12:38:11 +02:00
Harald Hoyer
d376b98537
test: add shellcheck to Makefile
2021-03-26 09:35:30 +01:00
Harald Hoyer
5667978e7b
style: use astyle instead of indent
2021-03-15 15:37:08 +01:00
Harald Hoyer
9e587f0008
ci: splitout indent-c from indent
...
... to be able to call it from CI
2021-03-15 15:37:08 +01:00
Harald Hoyer
07b65603ff
test: check for shfmt in Makefile
2021-03-15 15:37:08 +01:00
Harald Hoyer
e0a0fa6174
feat: extend Makefile indent target
...
- extend the C indent file pattern
- add shfmt, if installed
2021-03-13 20:10:43 +01:00
Harald Hoyer
501d82f796
fix: correctly handle kernel parameters
...
The kernel has an odd way to handle `"` surrounded parameters.
To handle the parameters as the kernel would do, no simple shell script
suffices, so a new utility `dracut-util` is introduced. Written in "C"
it handles `dracut-getarg` and `dracut-getargs` as the old shell script
functions `_dogetarg` and `_dogetargs` would.
2021-03-10 19:31:19 +01:00
Harald Hoyer
d643156d56
fix: remove dracut.pc on `make clean`
2021-03-10 17:58:37 +01:00
Harald Hoyer
d8a454a537
fix: honor KVERSION environment in the Makefile
2021-03-10 17:58:08 +01:00
Harald Hoyer
1a604e2a4a
chore: add `CONTRIBUTORS` target to Makefile
2021-02-15 16:54:44 +01:00
Daniel Molkentin
db44331dc4
Makefile: really make externally defined CFLAGS work
...
The fix in aed52a6cfb43ebea372328fd5837c1f341c3f0df does not
work (second line will be ignored on override), so expand the implicitly
defined rule and add them there.
2020-03-19 16:46:54 +01:00
Daniel Molkentin
c490ea8b2b
Make externally defined CFLAGS work
2020-03-19 16:46:54 +01:00
Alexander Tsoy
a76aa8e390
Makefile: fix VERSION again
...
The variable is not undefined anymore after the first assignment, so
we should check if variable is empty instead.
2020-03-09 08:50:20 +01:00
Đoàn Trần Công Danh
eb8a7a9635
Makefile: merge main-version and git-version earlier
...
With GNU Make 4.3 on both ArchLinux, and VoidLinux,
GITVERION is always empty because of bad substitution.
Change '\#' to simply '#' can fix it,
but we don't need that complation.
We can merge DRACUT_MAIN_VERSION and GITVERSION into DRACUT_FULL_VERSION.
Because, GITVERSION will be attached back to DRACUT_MAIN_VERSION in all
situation.
While we're at it, detect if we're in git worktree by:
limiting GIT_CEILING_DIRECTORIES to parent directory of
dracut's top level directory; instead of checking for .git directory,
in order to support git-worktree, in such case, .git will be a file, see
gitrepository-layout(5)
2020-03-06 09:49:40 +01:00
Frantisek Sumsal
3f4ffebf33
Makefile: fix RPM build
...
`make rpm` usually chose `/tmp` as the `$rpmbuild` dir, which breaks the
dracut build, since it needs to execute `./configure`, but `/tmp` is
mounted with `-o noexec`, leading to:
```
/var/tmp/rpm-tmp.SwEhJO: line 46: ./configure: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.SwEhJO (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.SwEhJO (%build)
```
Switching to `/var/tmp` helps in this case.
2020-02-28 16:31:43 +01:00
Daniel Molkentin
50057af19c
Documentation: dynamically set current version
...
Fixes #369
2019-11-12 13:24:41 +01:00
Doan Tran Cong Danh
62f27ee6f1
configure: find cflags and libs for fts on musl
...
Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
2019-11-10 01:47:30 +01:00
Harald Hoyer
b355c7a532
Makefile: fix VERSION
2019-07-22 14:36:23 +02:00
Jonas Witschel
12f023ab03
Replace $(arch) by $(uname -m)
2019-07-19 16:25:03 +02:00
Harald Hoyer
0eef73ea43
Makefile: add srpm target
2018-10-24 15:14:03 +02:00
Harald Hoyer
0ae5848245
travis: git pull more depth
2018-08-16 10:46:57 +02:00
Harald Hoyer
51d0a54555
travis: use own logtee.c to reduce log output
2018-08-16 10:17:48 +02:00
Tomasz Paweł Gajc
f59548aeab
fix build with KMOD
2017-04-24 21:37:56 +02:00
pallotron
15d103f911
better fix from @haraldh
2017-03-31 04:43:08 -07:00
pallotron
a99bbe8fa8
remove $$arch() from rpm target in Makefile
2017-03-30 05:53:36 -07:00
Harald Hoyer
6ee83a0bd1
Makefile: fixed DESTDIR in rpm target
2016-11-07 17:52:09 +01:00
Harald Hoyer
5d274f9365
Makefile: create rpms in DESTDIR for target rpm
2016-11-07 13:14:49 +01:00
Harald Hoyer
607fec3e79
Use pkg-config for libkmod CFLAGS and LIBS
2016-04-13 11:13:32 +02:00
Harald Hoyer
794b2d2c75
Use dracut-install to install kernel modules
...
dracut-install can now install kernel modules and their corresponding
firmware files.
2016-04-11 16:32:10 +02:00
Harald Hoyer
2249e7312e
Makefile: add efi target
...
make an UEFI bootable image
2015-11-25 14:21:33 +01:00
Harald Hoyer
3e1c531b4e
Makefile: remove output file before creating it
2015-11-11 12:33:07 +01:00
Harald Hoyer
8019e0eef3
Makefile: fix VERSION and GITVERSION
2015-11-11 11:48:32 +01:00
Mike Gilbert
24f32511fc
syncheck: Look for 'echo -n' usage in modules
2015-07-14 22:24:27 -04:00
Harald Hoyer
777f2db037
splitup dracut-init.sh from dracut-functions.sh
...
other tools want to source dracut-functions.sh without any mkdir side
effects.
2015-07-02 16:04:05 +02:00
Harald Hoyer
471439f564
add dracut.pc pkg-config file
2015-05-13 11:47:23 +02:00
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
2015-04-28 11:39:15 +02:00
Harald Hoyer
be82884d35
Makefile: turn off hostonly excplicitely for testimage target
2015-04-23 16:11:26 +02:00
Harald Hoyer
28eae10b70
Split the systemd dracut module up
...
Basic systemd functionality is in 00systemd now.
Switching root and the initrd.target is in 00systemd-initrd.
Dracut additions to the systemd initrd are in 98dracut-systemd.
2015-03-19 10:07:37 +01:00
Harald Hoyer
1dc360790d
Makefile: add -Wformat to CFLAGS
...
-Werror=format-security seems to be ignored without -Wformat
Thanks @ Christoph Brill
2015-01-08 14:56:07 +01:00
Harald Hoyer
246d285561
Makefile: removed dangling space
2014-10-24 09:37:19 +02:00