diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-09-18 16:53:18 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-09-18 16:53:18 +0300 |
| commit | f51e28cf79f21651e5f46627f04739163c6e248c (patch) | |
| tree | c700606362b232d6cebff142ebd55719b9e0cf11 /profiles/amd64-desktop | |
| parent | .gitignore: ignore metadata/md5-cache (diff) | |
| download | orf-overlay-f51e28cf79f21651e5f46627f04739163c6e248c.tar.gz orf-overlay-f51e28cf79f21651e5f46627f04739163c6e248c.zip | |
amd64-desktop: add make.defaults
Diffstat (limited to 'profiles/amd64-desktop')
| -rw-r--r-- | profiles/amd64-desktop/make.defaults | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/profiles/amd64-desktop/make.defaults b/profiles/amd64-desktop/make.defaults new file mode 100644 index 0000000..aa8da60 --- /dev/null +++ b/profiles/amd64-desktop/make.defaults | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | # CPU flags | ||
| 2 | # | ||
| 3 | # mmx, mmxext: | ||
| 4 | # sse, sse2, sse3, ssse3, sse4_1, sse4_2: Streaming SIMD Extensions | ||
| 5 | # popcnt: count number of bits set to 1 (useful in encryption) | ||
| 6 | CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 popcnt" | ||
| 7 | |||
| 8 | # LTO flags | ||
| 9 | # | ||
| 10 | # Source: https://wiki.gentoo.org/wiki/LTO#Enabling_LTO_System-wide | ||
| 11 | WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" | ||
| 12 | LTO_FLAGS="-flto ${WARNING_FLAGS}" | ||
| 13 | USE="${USE} lto" | ||
| 14 | |||
| 15 | # Common compilation flags | ||
| 16 | # | ||
| 17 | # -pipe: use pipes instead of temporary files to pass .s files to the assembler, | ||
| 18 | # avoiding unnecessary I/O | ||
| 19 | # -O2: O2 optimizations are safe enough in the majority of times | ||
| 20 | COMMON_FLAGS="-march=x86-64-v3 -O2 -pipe ${LTO_FLAGS}" | ||
| 21 | RUSTFLAGS="-C target-cpu=x86-64" | ||
| 22 | |||
| 23 | CFLAGS="${COMMON_FLAGS}" | ||
| 24 | CXXFLAGS="${COMMON_FLAGS}" | ||
| 25 | FCFLAGS="${COMMON_FLAGS}" | ||
| 26 | FFLAGS="${COMMON_FLAGS}" | ||
| 27 | |||
| 28 | # Distro | ||
| 29 | # | ||
| 30 | # Enable: distribution kernel, prebuilt binaries | ||
| 31 | USE="${USE} dist-kernel bindist" | ||
| 32 | |||
| 33 | # Security | ||
| 34 | # | ||
| 35 | # Enable: process capabilities, file capabilities, access control lists | ||
| 36 | # Disable: suid, single-use key | ||
| 37 | USE="${USE} caps filecaps acl -suid -skey" | ||
| 38 | |||
| 39 | # Desktop | ||
| 40 | # | ||
| 41 | # Enable: screencast support, fontconfig | ||
| 42 | USE="${USE} screencast fontconfig" | ||
| 43 | |||
| 44 | # Xorg | ||
| 45 | # | ||
| 46 | # Disable: X and its extensions | ||
| 47 | # NOTES: enable them per-package | ||
| 48 | USE="${USE} -X -xcomposite -xinerama -xscreensaver -xv" | ||
| 49 | |||
| 50 | # GTK & QT | ||
| 51 | # | ||
| 52 | # Disable: gtk documentation and gtk2, gtk3, qt5, qt6 toolkits | ||
| 53 | # NOTES: enable them per-package | ||
| 54 | USE="${USE} -gtk2 -gtk3 -gtk-doc" | ||
| 55 | USE="${USE} -qt5 -qt6" | ||
| 56 | |||
| 57 | |||
| 58 | # GNOME & KDE | ||
| 59 | # | ||
| 60 | # Disable: disable gnome and kde services/features which are not strictly necessary to run a standalone desktop | ||
| 61 | USE="${USE} -gnome -eds -gnome-online-accounts -sysprof" | ||
| 62 | USE="${USE} -kde -plasma -kwallet -kaccounts" | ||
| 63 | |||
| 64 | # Audio | ||
| 65 | # | ||
| 66 | # Enable: jack, pipewire | ||
| 67 | USE="${USE} jack pipewire" | ||
| 68 | |||
| 69 | # Graphics | ||
| 70 | # | ||
| 71 | # Enable: vaapi, vulkan | ||
| 72 | USE="${USE} vaapi vulkan" | ||
| 73 | |||
| 74 | # Misc | ||
| 75 | # | ||
| 76 | # Enable: fftw library for calculating fast fourier transformations | ||
| 77 | USE="${USE} fftw" | ||
| 78 | |||
| 79 | # Video cards | ||
| 80 | # | ||
| 81 | # Enable: framebuffer device (basic), amd related video card support | ||
| 82 | VIDEO_CARDS="fbdev amdgpu radeon radeonsi zink" | ||
| 83 | |||
| 84 | # Input devices | ||
| 85 | # | ||
| 86 | # Enable: evdev, libinput (manages most common inputs such as mouse, keyboard, touchpad etc) | ||
| 87 | INPUT_DEVICES="evdev libinput" | ||
| 88 | |||
| 89 | # Localization | ||
| 90 | # | ||
| 91 | # Enable: english, greek | ||
| 92 | L10N="en en_GB el" | ||
| 93 | |||
| 94 | # Licensing | ||
| 95 | # | ||
| 96 | # Enable: nothing except free and binary redistributables | ||
| 97 | ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE" | ||
