Skip to content

Commit

Permalink
Improve config modification and lint instructions (#6)
Browse files Browse the repository at this point in the history
* Improve config modification and lint instructions

- Simplify delta loop in README
- Add more comments in README
- Add all targets to build.sh TARGETLIST
- Lint config.mips64el

* Pull linux/4.10 for compile fix

* Update --targets usage message
  • Loading branch information
be32826 authored Jan 17, 2024
1 parent d237578 commit 766e9f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ The CI jobs will then build your release and make it available at `https://githu
If you'd like to add a given option or set of options to all configs, you can do something like:

```sh
# write your configs into delta.txt
for f in $(cat delta.txt); do for t in $(ls config.*); do echo $f>>$t; done; done
# Write your config options into delta.txt

# Apply delta
for cfg in config.*; do cat delta.txt >> $cfg; done

# Run linter as shown below

# Commit changes
git commit -a
```

Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ USAGE ./build.sh [--help] [--config-only] [--versions VERSIONS] [--targets TARGE
--versions VERSIONS
Build only the specified kernel versions. By default, all versions are built.
--targets TARGETS
Build only for the specified targets. By default, TARGETS is "armel mipseb mipsel mips64eb".
Build only for the specified targets. By default, all targets are built.
EXAMPLES
./build.sh --config-only --versions 4.10 --targets "armel mipseb mipsel mips64eb"
Expand All @@ -24,7 +24,7 @@ EOF
# Default options
CONFIG_ONLY=false
VERSIONS=4.10
TARGETS="armel mipseb mipsel mips64eb"
TARGETS="armeb armel mipseb mipsel mips64eb mips64el"

# Parse command-line arguments
for arg in "$@"; do
Expand Down
4 changes: 2 additions & 2 deletions config.mips64el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_SCHED=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
Expand Down Expand Up @@ -278,6 +279,7 @@ CONFIG_UDF_FS=y
CONFIG_VFAT_FS=y
CONFIG_PROC_KCORE=y
CONFIG_TMPFS=y
CONFIG_HUGETLBFS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_LZO=y
Expand Down Expand Up @@ -324,5 +326,3 @@ CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_ANSI_CPRNG=y
# CONFIG_CRYPTO_HW is not set
CONFIG_FONTS=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_HUGETLBFS=y
2 changes: 1 addition & 1 deletion linux/4.10
Submodule 4.10 updated 1 files
+4 −0 Makefile

0 comments on commit 766e9f9

Please sign in to comment.