Collection of various patches and configurations for padavan-ng firmware.
To install a patch get it from patches
directory and apply using patch
or git patch
tool to Padavan repository. If patch needs to replace files, copy them to the root of repository.
Patch | Purpose | Replaces files? |
---|---|---|
Banner | Replaces banner printed upon SSH login | Y |
ls lh | Aliases ls to ls -lh by default | N |
Menuconfig | Adds support for menuconfig in Makefile (executes on build) | N |
Fast compilation | Decreases compilation time by evaluating constant variables only once | N |
Strip CSS | Strips down main.css by removing deprecated rules | N |
WWW | Adds custom theme to Web UI | Y |
Sample config files that can be loaded using menuconfig patch on build.
CONFIG_NO_HZ=y
CONFIG_DEFAULT_HOSTNAME=luna
CONFIG_BUG=n
CONFIG_PCI_QUIRKS=n
CONFIG_SLAB=n
CONFIG_SLUB=y
CONFIG_NET_PPPOE_PTHROUGH=n
CONFIG_BLK_DEV_LOOP=n
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
CONFIG_CHROOT=n
CONFIG_DOS2UNIX=n
CONFIG_UNIX2DOS=n
CONFIG_UNAME_OSNAME=GNU/Ponix
CONFIG_VI=n
CONFIG_CHPASSWD=n
CONFIG_FLOCK=n
CONFIG_SWITCH_ROOT=n
CONFIG_FEATURE_MOUNT_LOOP=n
CONFIG_CROND=n
CONFIG_CRONTAB=n
CONFIG_STRINGS=n
CONFIG_DNSDOMAINNAME=n
CONFIG_INETD=n
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
CT_EXTRA_CFLAGS_FOR_BUILD="-O3"
CT_EXTRA_LDFLAGS_FOR_BUILD="-O3"
CT_TARGET_CFLAGS="-pipe -O3"
CT_ARCH_TUNE=""
CT_ARCH_ARCH="" # Set to your target arch manually
CT_CC_GCC_ENABLE_TARGET_OPTSPACE=n
It is possible to add compiler flags for the entire build by wrapping toolchain binaries in script and hardlinking them.
- Build the toolchain
- Move original binaries from
toolchain/out/bin
totoolchain/out/bin_original
- Copy
wrapper.sh
andsetup_hardlinks.sh
totoolchain/out/bin
- Execute
setup_hardlinks.sh
- Edit compiler and linker flags (
-O3
by default) inwrapper.sh
to suit your needs
There are more changes that could have been done, but they failed to apply. See here
All issues and pull requests are welcome! Feel free to open an issue if you've got an idea or a problem. You can open a pull request if you are able to implement it yourself.
Made with ponies and love!
GNU GPL © Ryze 2023