Skip to content
Open

A14 #10

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
7cb9b2f
anykernel: Bake AnyKernel3 into the kernel tree
libxzr Mar 22, 2023
8e4003d
anykernel: Set up for Meteoric kernel
libxzr Nov 23, 2022
6844da2
anykernel: Force disable vbmeta verifications
libxzr Nov 23, 2022
9522777
drivers: Implement KernelSU
YumeMichi Apr 17, 2023
7264f1b
fs: Add kernel hooks for KernelSU
YumeMichi Apr 17, 2023
257115c
drivers: Add KernelSU SafeMode hook
YumeMichi Apr 17, 2023
6688598
drivers: Conditionally build KernelSU
HELLBOY017 Jul 19, 2023
dda7d70
configs: Add KernelSU config
HELLBOY017 Sep 28, 2023
1116f03
Add a build script
HELLBOY017 Jan 20, 2024
eb6fdce
build.sh: Clone KernelSU submodule recursively
HELLBOY017 Jan 26, 2024
f37e00a
.gitignore: Setup for meteoric
HELLBOY017 Jan 20, 2024
a1b69e6
treewide: Import changes from oneplus/sm8250_u_14.0.0_op9r
HELLBOY017 Jan 20, 2024
de9d478
techpack: Import changes from oneplus/sm8250_u_14.0.0_op9r
HELLBOY017 Jan 20, 2024
05860eb
arm64: boot: dts: Import from oneplus/sm8250_u_14.0.0_op9r
HELLBOY017 Jan 20, 2024
15b7b17
treewide: Bake vendor/oplus into the kernel tree
libxzr Jan 20, 2024
8a90ae4
staging: qca-wifi-host-cmn: Import changes from oneplus/sm8250_t_13.0…
mikeNG Nov 19, 2022
390ba65
staging: qcacld-3.0: Import changes from oneplus/sm8250_t_13.0.0_op8
mikeNG Nov 19, 2022
98e2008
ARM: dts: oplus: Enable multiple WLAN drivers support for Kona
Apr 9, 2020
0b0921b
defconfig: Build WLAN drivers
HELLBOY017 Jan 21, 2024
4cff05d
OplusKernelEnvConfig.mk: Add more magic exports
luk1337 Jun 21, 2022
a706a6e
OplusKernelEnvConfig: Set build brand
libxzr Nov 20, 2022
ff4465c
OplusKernelEnvConfig: Remove warnings
HELLBOY017 Jan 20, 2024
48bf25e
techpack: display: Remove iris warning
HELLBOY017 Jan 20, 2024
777a5c2
power: Remove duplicate Kconfig options
mikeNG Nov 23, 2022
afc5106
oplus: dos2unix some kconfigs
HELLBOY017 Jan 20, 2024
c2de5b0
audio: Build oplus specific audio drivers
libxzr Jan 19, 2023
0a2004c
techpack: audio: tfa98xx-v6: Use fixed size buffer instead of VLA
luk1337 Apr 6, 2022
16fad14
techpack: audio: Fix build errors
luk1337 Jun 22, 2022
1124f14
techpack: audio: dos2unix smartpa_pm.* (and add newlines)
luk1337 Jun 22, 2022
056650d
erofs: lz4armv8: Make it compile with IAS
luk1337 Sep 3, 2022
da921e2
touchscreen: Fix errors due to assumption of CONFIG_FB always being set
jabashque Nov 18, 2022
4a7c074
oplus: charger: Fix include path
libxzr Jan 20, 2024
b326796
net: oplus: Pass socket sk to ip_route_me_harder
luk1337 Jan 20, 2024
5e9aaf2
treewide: Fix section mismatches
libxzr Apr 16, 2023
b18ed5b
treewide: Fix LLVM 18 warns
HELLBOY017 Jan 21, 2024
6d6a40a
kernel: Use the stock config for /proc/config.gz
kerneltoast May 7, 2020
c155cae
net: Allow BPF JIT to compile without module support
tytydraco Aug 16, 2019
26b8e1b
defconfig: build everything inline
HELLBOY017 Jan 21, 2024
5907840
techpack: audio: Build everything inline
libxzr Nov 20, 2022
a1dc9f1
audio: Build extend driver inline
libxzr Jan 19, 2023
27e0181
audio: Resolve symbol name conflicts
libxzr Jan 19, 2023
d1faeef
oplus: last_boot_reason: Build it inline
HELLBOY017 Jan 26, 2024
efc1db7
oplus: charger: Fix unused variable warns
HELLBOY017 Jan 21, 2024
6e97a29
dsi_panel: Make sure the gpio is valid before direction input
libxzr Apr 17, 2023
2c8d488
oplus: Fix duplicate registration of /proc/ftm_tfa98xx
libxzr Apr 16, 2023
62d3429
oplus: Fix duplicate registration of /proc/oplus_ke
libxzr Apr 16, 2023
42e63f1
techpack: display: Fix duplicate registeration of /proc/devinfo/lcd
HELLBOY017 Sep 26, 2023
5901fb2
tri_state_key: Fix unbalanced IRQ usage
Aug 18, 2022
63a3107
oplus_battery_msm8250: Fix unbalanced IRQ usage
Sep 26, 2023
3b0411f
oplus: touchscreen: S6SY771: Fix unbalanced IRQ usage
HELLBOY017 Jan 28, 2024
1c3f534
oplus: Remove SIGKILL_DIAGNOSIS
HELLBOY017 Jan 28, 2024
45b0263
defconfig: Compile device tree blobs
libxzr Nov 20, 2022
922f280
arm64: Generate a single final dtb
libxzr Nov 23, 2022
ae2b7bb
build-dtbo: Support base dtbs which located in foreign folder
holio0 Jun 19, 2018
d5d7e6c
dtbo.img: build device tree overlay partition image
holio0 Jun 19, 2018
7b651f6
scripts: use aosp python mkdtboimg for cmd_mkdtimg
UtsavBalar1231 Mar 11, 2020
1194a61
BACKPORT: scripts/dtc: Add yamltree.c to dtc sources
robherring Sep 13, 2018
bd64c8a
BACKPORT: scripts/dtc: Update to upstream version v1.4.7-14-gc86da84d…
robherring Sep 13, 2018
c96a622
Revert "dtc: Silence warnings by default"
YumeMichi Aug 3, 2022
acd03a6
scripts: Makefile: suppress DTC compiler warnings
jesec Oct 14, 2020
9999b5b
BACKPORT: kbuild: consolidate Devicetree dtb build rules
robherring Jan 10, 2018
457f48c
BACKPORT: scripts/dtc: Update to upstream version v1.4.7-57-gf267e674…
robherring Nov 29, 2018
c39f311
BACKPORT: of: add dtc annotations functionality to dtx_diff
frowand Jan 17, 2019
4abe05a
BACKPORT: treewide: prefix header search paths with $(srctree)/
masahir0y May 13, 2019
71f645d
BACKPORT: scripts/dtc: Update to upstream version v1.5.0-23-g87963ee2…
robherring Jun 12, 2019
bb5f675
BACKPORT: scripts/dtc: Update to upstream version v1.5.0-30-g702c1b6c…
robherring Jun 21, 2019
7feb024
BACKPORT: dtc: Use pkg-config to locate libyaml
Jul 12, 2019
ac200eb
BACKPORT: scripts/dtc: only append to HOST_EXTRACFLAGS instead of ove…
Sep 19, 2020
84e55ec
scripts: Don't append "+" to localversion
kerneltoast Jul 30, 2022
17dc48f
defconfig: Introduce meteoric defconfig
HELLBOY017 Jan 21, 2024
f0585bf
defconfig: Spoof vbmeta state
libxzr Jan 19, 2023
5210f40
defconfig: Enable UNICODE
HELLBOY017 Jan 27, 2024
02b8afb
oplus_touchscreen: Port SEC double tap support hax from oneplus/sm825…
luk1337 Nov 25, 2022
6f5d12c
oplus_touchscreen: Add software only black gesture indep support
luk1337 Apr 16, 2022
495939e
synaptics_tcm_oncell: Correct bits for {LEFT,RIGHT}_VEE
luk1337 Apr 17, 2022
10dda74
synaptics_tcm_oncell: Add support for SingleTap/SGESTRUE gestures
luk1337 Jun 22, 2022
9b2087d
display: oplus: Add fp_state sysfs
luk1337 Apr 15, 2022
b6d9071
oplus_touchpanel: Fix game mode not restoring on wakeup
libxzr Nov 16, 2020
86f05b7
arm64: dts: Alias qupv3_se11_i2c to i2c6
jabashque Jul 16, 2022
26930b0
arm64: dts: Alias qupv3_se1_i2c to i2c3
jabashque Jul 16, 2022
12a05b7
power: oplus_vooc: Skip fw header/footer for vooc_fw_update_newmethod
jabashque Aug 15, 2022
6a4f25d
arm64: dts: oplus: Disable touchscreen debugging
mikeNG Dec 15, 2022
4fa02a6
arm64: dts: oplus: Align TMO panel flags with non-TMO
mikeNG Dec 15, 2022
842da9f
arm64: dts: oplus: Align panel names with KB2005_11_F.13
luk1337 Dec 5, 2022
b3020e9
dts: 19821: Use oplus19101samsung-amb655uv01-1080-2400-90fps from 19855
jabashque Aug 21, 2022
9788e9a
power: oplus_charger: Report discharging status on ui soc update
luk1337 Aug 24, 2022
30b1c9b
arm64: dts: 19821/19855: Don't blank screen as part of LP1 cmd
javelinanddart Jan 9, 2023
43951ab
qcacld-3.0: Fallback to default WCNSS config path for custom ROMs
0ctobot Apr 14, 2021
e67cdfe
BACKPORT: msm: kgsl: Add support to get gpu model from device tree
Apr 7, 2021
f2c85fd
BACKPORT: msm: kgsl: Add a property to query gpu model name
Apr 5, 2021
df686b6
BACKPORT: msm: kgsl: Add support for KGSL_PROP_VK_DEVICE_ID
May 10, 2021
433617c
power: oplus_vooc: Condtionally skip reading header/footer from vooc fw
jabashque Mar 8, 2023
c315173
display: oplus: Skip pcc on fingerprint_pressed instead
jabashque Feb 10, 2023
3051582
display: oplus: Don't skip pcc for doze modes
jabashque Feb 10, 2023
17e988f
arm64: dts: 19805/20809/20828: Don't blank screen as part of LP1 cmd
jabashque Feb 7, 2023
ecbd9a9
techpack: display: Don't skip LP1 cmd for AoD with fingerprint_mode on
jabashque Jan 9, 2023
1eb84c6
techpack: display: Set oplus_dimlayer_hbm when switching power modes
jabashque Feb 10, 2023
6503adf
display: oplus: Set AoD low light mode as default
jabashque Jan 18, 2023
a31f07d
Makefile: Set correct techpack header install directory.
Rashed97 Jul 2, 2019
1a60e59
[DNM] oplus_touchscreen: Make a seperate node for lineage touch hidl …
HELLBOY017 Apr 4, 2023
33242b0
cnss2: Setup DMS QMI client for WLAN MAC address
Sep 3, 2020
6abb388
cnss2: Propagate WLAN MAC to cnss utils
luk1337 Apr 24, 2022
f55da3d
cnss2: Kang oplus's hacks for reversing mac address from lahaina
HELLBOY017 Aug 10, 2023
f2c56a1
aw8697: Increase max gain to 0x80
HELLBOY017 Dec 28, 2022
b305c35
misc: tri_state_key: Assign vendor id
luk1337 Oct 29, 2023
2e8da60
Implement KCAL color calibration
tbalden Jun 14, 2018
864484c
aw8697: add haptic level adjustment
flar2 May 24, 2019
dceb099
drivers: misc: power: implement usb2 fast charge mode
engstk Jul 31, 2017
9b4c658
Added fsync on/off support.
franciscofranco Nov 22, 2012
84c8f70
fs: sync: Avoid calling fdget without fdput
aviraxp Jun 9, 2018
e56d615
fs: sync: set proper permissions for fsync_enabled
engstk Apr 2, 2020
2f43e11
workqueue: change permissions to allow root control of wq_power_effic…
Jul 7, 2017
dc28e8b
msm_adreno_tz: add adrenoboost parameter
flar2 Jul 30, 2016
f4a155c
adrenoboost: finetuning algorithm - scale it a bit down
tbalden Jul 30, 2016
c0c9eec
adrenoboost: stats is now a pointer
flar2 May 8, 2020
617be12
adrenoboost: disable by default
flar2 Sep 11, 2016
82906bb
display: oplus: Add a new sysfs attribute to override skipping pcc
AnierinBliss Feb 23, 2023
d117041
msm_performance: don't limit min and max cpu freq
flar2 Aug 7, 2017
c5e70c6
msm_performance: simplify touchboost check and process
engstk Jun 6, 2018
e06c66c
msm_performance: Disable touchboost by default
AnierinBliss Jul 24, 2022
f192c23
defconfig: Build Image.gz instead of uncompressed image
libxzr Jan 28, 2024
5510278
defconfig: Add NTFS
HELLBOY017 Sep 14, 2023
9fe6790
cnss2: Don't delay registering wlan driver
HELLBOY017 Sep 20, 2023
a2d773e
defconfig: Disable DEBUGFS.
HELLBOY017 Dec 4, 2020
aee18d3
Revert "GKI: remote dma_buf.ktime when debugfs is disabled"
HELLBOY017 Jan 29, 2024
08dbfb9
defconfig: Also include version in localversion string
HELLBOY017 Jan 31, 2024
03d0fb0
Version: Show if kernel build has KernelSU
HELLBOY017 Jan 31, 2024
ff9d6b3
Version: Show if kernel build has KernelSU
HELLBOY017 Jan 31, 2024
57da0ef
oplus: touchscreen: Don't use oplus dt2w hacks conditionally
HELLBOY017 Feb 1, 2024
171bce6
oplus: touchpanel: S6SY771/S6SY791: Checkout from oneplus/sm8250_t_13…
HELLBOY017 Feb 2, 2024
27e1132
Fix the nfs read problem
Feb 2, 2024
db77f2c
Update KerenlSU-11497
Feb 2, 2024
ed730f0
Patch xt_qtaguid.c
Feb 2, 2024
0d7b480
Merge branch 'HELLBOY017:14' into A14
poxiao676 Feb 2, 2024
b5ab4df
treewide: oplus: Fix some compilation issues
HELLBOY017 Feb 2, 2024
8743fc9
Merge branch 'HELLBOY017:14' into A14
poxiao676 Feb 2, 2024
fc712fa
Update KerenlSU-11504
Feb 2, 2024
acfc132
Version: Redo localversion changes for KernelSU
HELLBOY017 Feb 3, 2024
41b2423
Merge branch 'HELLBOY017:14' into A14
poxiao676 Feb 4, 2024
a8261c7
oplus: touchscreen: Simply custom gestures support
HELLBOY017 Feb 7, 2024
8e319b9
Merge branch 'HELLBOY017:14' into A14
poxiao676 Feb 7, 2024
1031210
mhi: core: Revert oplus changes
HELLBOY017 Feb 7, 2024
44b1fc9
oplus: touchscreen: Simplify custom gestures support
HELLBOY017 Feb 8, 2024
38c0215
Merge branch 'HELLBOY017:14' into A14
poxiao676 Feb 9, 2024
be967e4
KernelSU: Update to version 11510
Feb 9, 2024
7519eea
build.sh: Fix check for KernelSU module
HELLBOY017 Feb 14, 2024
1aa23ad
Merge branch 'HELLBOY017:14' into A14
poxiao676 Feb 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,6 @@ kernel/configs/android-*.cfg
#Ignoring Android.bp link file
#
Android.bp

# Ignore out directory
out/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "KernelSU"]
path = KernelSU
url = https://github.com/tiann/KernelSU/
2 changes: 1 addition & 1 deletion AndroidKernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ $(KERNEL_HEADERS_INSTALL): $(KERNEL_OUT)

# Creating a dtb.img once the kernel is compiled if TARGET_KERNEL_APPEND_DTB is set to be false
$(INSTALLED_DTBIMAGE_TARGET): $(TARGET_PREBUILT_INT_KERNEL)
cat $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/dts/vendor/qcom/*.dtb > $@
cat $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/dts/vendor/*/*.dtb > $@

.PHONY: kerneltags
kerneltags: $(KERNEL_OUT) $(KERNEL_CONFIG)
Expand Down
26 changes: 25 additions & 1 deletion Documentation/ABI/testing/sysfs-fs-f2fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Description: Controls the in-place-update policy.
0x01: F2FS_IPU_FORCE, 0x02: F2FS_IPU_SSR,
0x04: F2FS_IPU_UTIL, 0x08: F2FS_IPU_SSR_UTIL,
0x10: F2FS_IPU_FSYNC, 0x20: F2FS_IPU_ASYNC,
0x40: F2FS_IPU_NOCACHE.
0x40: F2FS_IPU_NOCACHE, 0x80: F2FS_IPU_HONOR_OPU_WRITE.
Refer segment.h for details.

What: /sys/fs/f2fs/<disk>/min_ipu_util
Expand Down Expand Up @@ -347,3 +347,27 @@ Date: April 2020
Contact: "Daeho Jeong" <daehojeong@google.com>
Description: Give a way to change iostat_period time. 3secs by default.
The new iostat trace gives stats gap given the period.

What: /sys/fs/f2fs/<disk>/compr_written_block
Date: March 2021
Contact: "Daeho Jeong" <daehojeong@google.com>
Description: Show the block count written after compression since mount. Note
that when the compressed blocks are deleted, this count doesn't
decrease. If you write "0" here, you can initialize
compr_written_block and compr_saved_block to "0".

What: /sys/fs/f2fs/<disk>/compr_saved_block
Date: March 2021
Contact: "Daeho Jeong" <daehojeong@google.com>
Description: Show the saved block count with compression since mount. Note
that when the compressed blocks are deleted, this count doesn't
decrease. If you write "0" here, you can initialize
compr_written_block and compr_saved_block to "0".

What: /sys/fs/f2fs/<disk>/compr_new_inode
Date: March 2021
Contact: "Daeho Jeong" <daehojeong@google.com>
Description: Show the count of inode newly enabled for compression since mount.
Note that when the compression is disabled for the files, this count
doesn't decrease. If you write "0" here, you can initialize
compr_new_inode to "0".
51 changes: 50 additions & 1 deletion Documentation/filesystems/f2fs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ checkpoint=%s[:%u[%]] Set to "disable" to turn off checkpointing. Set to "en
This space is reclaimed once checkpoint=enable.
compress_algorithm=%s Control compress algorithm, currently f2fs supports "lzo",
"lz4" and "zstd" algorithm.
compress_algorithm=%s:%d Control compress algorithm and its compress level, now, only
"lz4" and "zstd" support compress level config.
algorithm level range
lz4 3 - 16
zstd 1 - 22
compress_log_size=%u Support configuring compress cluster size, the size will
be 4KB * (1 << %u), 16KB is minimum size, also it's
default size.
Expand All @@ -250,7 +255,23 @@ compress_extension=%s Support adding specified extension, so that f2fs can enab
on compression extension list and enable compression on
these file by default rather than to enable it via ioctl.
For other files, we can still enable compression via ioctl.

compress_chksum Support verifying chksum of raw data in compressed cluster.
compress_mode=%s Control file compression mode. This supports "fs" and "user"
modes. In "fs" mode (default), f2fs does automatic compression
on the compression enabled files. In "user" mode, f2fs disables
the automaic compression and gives the user discretion of
choosing the target file and the timing. The user can do manual
compression/decompression on the compression enabled files using
ioctls.
compress_cache Support to use address space of a filesystem managed inode to
cache compressed block, in order to improve cache hit ratio of
random read.
inlinecrypt When possible, encrypt/decrypt the contents of encrypted
files using the blk-crypto framework rather than
filesystem-layer encryption. This allows the use of
inline encryption hardware. The on-disk format is
unaffected. For more details, see
Documentation/block/inline-encryption.rst.
================================================================================
DEBUGFS ENTRIES
================================================================================
Expand Down Expand Up @@ -732,3 +753,31 @@ Compress metadata layout:
+-------------+-------------+----------+----------------------------+
| data length | data chksum | reserved | compressed data |
+-------------+-------------+----------+----------------------------+

Compression mode
--------------------------

f2fs supports "fs" and "user" compression modes with "compression_mode" mount option.
With this option, f2fs provides a choice to select the way how to compress the
compression enabled files (refer to "Compression implementation" section for how to
enable compression on a regular inode).

1) compress_mode=fs
This is the default option. f2fs does automatic compression in the writeback of the
compression enabled files.

2) compress_mode=user
This disables the automaic compression and gives the user discretion of choosing the
target file and the timing. The user can do manual compression/decompression on the
compression enabled files using F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE
ioctls like the below.

To decompress a file,

fd = open(filename, O_WRONLY, 0);
ret = ioctl(fd, F2FS_IOC_DECOMPRESS_FILE);

To compress a file,

fd = open(filename, O_WRONLY, 0);
ret = ioctl(fd, F2FS_IOC_COMPRESS_FILE);
79 changes: 79 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,85 @@ mainmenu "Linux/$(ARCH) $(KERNELVERSION) Kernel Configuration"

comment "Compiler: $(CC_VERSION_TEXT)"

#ifdef CONFIG_OPLUS_SYSTEM_KERNEL
config OPLUS_SYSTEM_KERNEL_QCOM
bool "config oplus system feature "
default y
help
define this config to Distinguish between qcom and mtk platform

config OPLUS_SYSTEM_KERNEL_MTK
bool "config oplus system feature "
default n
help
define this config to Distinguish between qcom and mtk platform

config OPLUS_SLUB_TEST
string
default "$(OPLUS_SLUB_TEST)"

config OPLUS_KASAN_TEST
string
default "$(OPLUS_KASAN_TEST)"

config OPLUS_KMEMLEAK_TEST
string
default "$(OPLUS_KMEMLEAK_TEST)"

config OPLUS_AGING_TEST
string
default "$(OPLUS_AGING_TEST)"

config OPLUS_PAGEOWNER_TEST
string
default "$(OPLUS_PAGEOWNER_TEST)"

config OPLUS_AGING_DEBUG
bool "oplus aging add config"
select IPC_LOGGING
select QCOM_RTB
select QCOM_RTB_SEPARATE_CPUS
select SCSI_LOGGING
select SCSI_UFSHCD_CMD_LOGGING
select KPROBES
select MHI_DEBUG
default y if OPLUS_AGING_TEST = "true"
default n

config OPLUS_KASAN_DEBUG
bool "oplus kasan debug"
select KASAN
select KASAN_GENERIC
#select KCOV
#select KCOV_ENABLE_COMPARISONS
default y if OPLUS_KASAN_TEST = "true"
default n

config OPLUS_KMEMLEAK_DEBUG
bool "oplus kmemleak debug"
select DEBUG_KMEMLEAK
select SLUB_DEBUG
select SLABTRACE_DEBUG
default y if OPLUS_KMEMLEAK_TEST = "true"
default n

config OPLUS_SLUB_DEBUG
bool "oplus slub debug"
select SLUB_DEBUG
select SLUB_DEBUG_ON
select SLUB_DEBUG_PANIC_ON
default y if OPLUS_SLUB_TEST = "true"
default n

config OPLUS_PAGEOWNER_DEBUG
bool "oplus pageowner debug"
select PAGE_OWNER
select PAGE_OWNER_ENABLE_DEFAULT
default y if OPLUS_PAGEOWNER_TEST = "true"
default n
#endif /*CONFIG_OPLUS_SYSTEM_KERNEL*/


source "scripts/Kconfig.include"

source "init/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions KernelSU
Submodule KernelSU added at 6bf9e0
120 changes: 116 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,84 @@ KBUILD_LDFLAGS :=
GCC_PLUGINS_CFLAGS :=
CLANG_FLAGS :=

export ARCH SRCARCH CONFIG_SHELL HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
-include OplusKernelEnvConfig.mk

# ifdef VENDOR_EDIT
KBUILD_CFLAGS += -DVENDOR_EDIT
KBUILD_CPPFLAGS += -DVENDOR_EDIT
CFLAGS_KERNEL += -DVENDOR_EDIT
CFLAGS_MODULE += -DVENDOR_EDIT
# endif
ifeq ($(BRAND_SHOW_FLAG),oneplus)
KBUILD_CFLAGS += -DOPLUS_CUSTOM_OP_DEF
endif

# ifdef OPLUS_FEATURE_POWER_EFFICIENCY
KBUILD_CFLAGS += -DOPLUS_FEATURE_POWER_EFFICIENCY
KBUILD_CPPFLAGS += -DOPLUS_FEATURE_POWER_EFFICIENCY
CFLAGS_KERNEL += -DOPLUS_FEATURE_POWER_EFFICIENCY
CFLAGS_MODULE += -DOPLUS_FEATURE_POWER_EFFICIENCY
# endif

-include OplusKernelEnvConfig.mk

#ifdef VENDOR_EDIT
ifneq (,$(findstring Aging,$(SPECIAL_VERSION)))
OPLUS_F2FS_DEBUG := true
endif

export OPLUS_F2FS_DEBUG
#endif /* VENDOR_EDIT */

#ifdef OPLUS_BUG_STABILITY
#Add for Debug Config, slub/kmemleak/kasan config
ifeq ($(AGING_DEBUG_MASK),1)
#Agingtest enable rtb
OPLUS_MEMLEAK_DETECT := true
OPLUS_AGING_TEST := true
endif

ifeq ($(AGING_DEBUG_MASK),2)
#enable kasan
OPLUS_KASAN_TEST := true
endif

ifeq ($(AGING_DEBUG_MASK),3)
#enable kmemleak
OPLUS_KMEMLEAK_TEST := true
endif

ifeq ($(AGING_DEBUG_MASK),4)
#enable rtb
OPLUS_AGING_TEST := true
#enable kasan
OPLUS_SLUB_TEST := true
endif

ifeq ($(AGING_DEBUG_MASK),5)
#enable rtb
OPLUS_AGING_TEST := true
#enable kasan
OPLUS_PAGEOWNER_TEST := true
endif

export OPLUS_AGING_TEST OPLUS_KASAN_TEST OPLUS_KMEMLEAK_TEST OPLUS_SLUB_TEST OPLUS_PAGEOWNER_TEST
#endif

#ifdef OPLUS_FEATURE_MEMLEAK_DETECT
#Add for memleak test
ifeq ($(TARGET_MEMLEAK_DETECT_TEST),0)
OPLUS_MEMLEAK_DETECT := false
else ifeq ($(TARGET_MEMLEAK_DETECT_TEST),1)
OPLUS_MEMLEAK_DETECT := true
OPLUS_SLUB_TEST := true
endif

#Add for memleak test
export OPLUS_MEMLEAK_DETECT
#endif

export ARCH SRCARCH CONFIG_SHELL HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE AS LD CC
export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE READELF KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS
export MAKE LEX YACC AWK GENKSYMS INSTALLKERNEL PERL PYTHON PYTHON2 PYTHON3 UTS_MACHINE
export HOSTCXX KBUILD_HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
Expand Down Expand Up @@ -1228,7 +1305,7 @@ include/config/kernel.release: $(srctree)/Makefile FORCE
# Carefully list dependencies so we do not try to build scripts twice
# in parallel
PHONY += scripts
scripts: scripts_basic asm-generic gcc-plugins $(autoksyms_h)
scripts: scripts_basic scripts_dtc asm-generic gcc-plugins $(autoksyms_h)
$(Q)$(MAKE) $(build)=$(@)

# Things we need to do before we recursively start building the kernel
Expand Down Expand Up @@ -1361,7 +1438,7 @@ headers_install: __headers
$(error Headers not exportable for the $(SRCARCH) architecture))
$(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include
$(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst)
$(Q)$(MAKE) $(hdr-inst)=techpack
$(Q)$(MAKE) $(hdr-inst)=techpack/audio/include/uapi dst=techpack/audio/include

PHONY += headers_check_all
headers_check_all: headers_install_all
Expand All @@ -1371,7 +1448,7 @@ PHONY += headers_check
headers_check: headers_install
$(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1
$(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst) HDRCHECK=1
$(Q)$(MAKE) $(hdr-inst)=techpack HDRCHECK=1
$(Q)$(MAKE) $(hdr-inst)=techpack/audio/include/uapi dst=techpack/audio/include HDRCHECK=1

# ---------------------------------------------------------------------------
# Kernel selftest
Expand All @@ -1392,6 +1469,35 @@ kselftest-merge:
$(srctree)/tools/testing/selftests/*/config
+$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig

# ---------------------------------------------------------------------------
# Devicetree files

ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/boot/dts/),)
dtstree := arch/$(SRCARCH)/boot/dts
endif

ifneq ($(dtstree),)

%.dtb: prepare3 scripts_dtc
$(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@

PHONY += dtbs dtbs_install
dtbs: prepare3 scripts_dtc
$(Q)$(MAKE) $(build)=$(dtstree)

dtbs_install:
$(Q)$(MAKE) $(dtbinst)=$(dtstree)

ifdef CONFIG_OF_EARLY_FLATTREE
all: dtbs
endif

endif

PHONY += scripts_dtc
scripts_dtc: scripts_basic
$(Q)$(MAKE) $(build)=scripts/dtc

# ---------------------------------------------------------------------------
# Modules

Expand Down Expand Up @@ -1601,6 +1707,12 @@ help:
@echo ' kselftest-merge - Merge all the config dependencies of kselftest to existing'
@echo ' .config.'
@echo ''
@$(if $(dtstree), \
echo 'Devicetree:'; \
echo '* dtbs - Build device tree blobs for enabled boards'; \
echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \
echo '')

@echo 'Userspace tools targets:'
@echo ' use "make tools/help"'
@echo ' or "cd tools; make help"'
Expand Down
Loading