798961 Commits

Author SHA1 Message Date
Danny Baumann
1d3bf88605
drm: msm: dsi-staging: Add support for High Brightness Mode
Author: Arian <arian.kulmer@web.de>
Date:   Wed Jun 24 15:44:22 2020 +0200

    drm: msm: Use type_map array index 0 for invalid hbm values

    Change-Id: I8b29ad7227be9f01f945af136747a5924b0b628a

[ghostrider-reborn] Adapted to surya LCD HBM
Change-Id: Id133e30c7bf645386053c42d4d121a053b03bac7
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:24 +00:00
Demon000
6980172c8f
drm: msm: dsi-staging: Create empty attributes group
Change-Id: I974643cb245f76e66b208f7e18601cbb3d90ae62
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:24 +00:00
Kuba Wojciechowski
e92f1a9c49
drivers: drm: import minimal changes from xiaomi
* drop some stuff that depended on features I didn't pick

Change-Id: Ia857c819b2acaaa101227e8d3e460c00082334b6
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:24 +00:00
Adithya R
c27672260d
drivers: spi: Import xiaomi changes
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:24 +00:00
Adithya R
3787afdadb
leds: qti-tri-led: Nuke xiaomi changes for white LED node
* useless, besides they didnt even add breathing support

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:23 +00:00
Adithya R
0c4de69a71
drivers: leds: Import xiaomi changes
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:23 +00:00
Volodymyr Zhdanov
26047dd6b7
msm: camera: Import operation mode changes from mojito-r-oss
* needed for A11 camera blobs

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:23 +00:00
Adithya R
7171a6fe77
msm: camera: Import xiaomi changes
* cleaned up a bit

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:23 +00:00
Adithya R
97a4917898
drivers: usb: Import xiaomi changes
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:22 +00:00
Haijian Ma
e701109a84
smb5: Rerun APSD to ensure proper charger detection
Rerun APSD to ensure proper charger detection if device
boots with charger connected.

Change-Id: I21c9be0c098b7e7ba388f71e9ba4b90180bfd112
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366956
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:22 +00:00
Anirudh Ghayal
690f78394e
power: smb5-lib: Query FLASH_TRIGGER only for PMI632
The FLASH_TRIGGER property is supported only on PMI632, add
a check for it.

Change-Id: I269b0be18b56d56c0ab0e68ee1d7194d09824dd3
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:22 +00:00
Danny Lin
95c41bfd36
power: supply: Classify Battery Monitor Systems as batteries
CAF's new fuel gauge drivers report POWER_SUPPLY_TYPE_BMS (Battery
Monitor System) instead of POWER_SUPPLY_TYPE_BATTERY (battery), and
rightfully so because it describes their purpose more accurately.

Update the power_supply_is_system_supplied function to recognize BMS
power supplies as batteries to prevent it from attempting to query the
POWER_SUPPLY_PROP_ONLINE property on our fuel gauge drivers.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:22 +00:00
Volodymyr Zhdanov
3d3a0327af
fixup! [M703][charging][HTH-88058]modify usb charge real type to type
* update implementation from mojito-r-oss
* this fixes broken charger indication

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:21 +00:00
Yaroslav Furman
12d3bc8c57
power/supply: bq2597x_charger: Fix log formatting
Fixes:
[    0.817042] [bq2597x] bq2597x_charger_probe: lct client->irq=d
[    0.817046] Please remove unsupported %
[    0.817047] in format string
[    0.817048] ------------[ cut here ]------------
[    0.817050] WARNING: CPU: 5 PID: 1 at lib/vsprintf.c:2139 format_decode+0x424/0x434
[    0.817050] Modules linked in:
[    0.817053] CPU: 5 PID: 1 Comm: swapper/0 Tainted: G S              4.14.190-QuicksilveR-surya/b0b3615b #3
[    0.817054] Hardware name: Qualcomm Technologies, Inc. SDMMAGPIE PM6150 IDP (DT)
[    0.817055] task: 00000000863766aa task.stack: 00000000dd7fb7f4
[    0.817056] pc : format_decode+0x424/0x434
[    0.817056] lr : format_decode+0x420/0x434
[    0.817057] sp : ffffff800805b7a0 pstate : 60c00085
[    0.817058] x29: ffffff800805b7c0 x28: ffffff800805b880
[    0.817060] x27: 0000000000000013 x26: ffffff9fa83cb62a
[    0.817062] x25: ffffff9fa83cb62a x24: ffffff9fa8eb32dc
[    0.817064] x23: 0000000000ffffff x22: ffffff9fa8080f14
[    0.817066] x21: ffffff9fa8eb3688 x20: ffffff800805b7f0
[    0.817068] x19: ffffff9fa83cb62a x18: 0000000000000000
[    0.817070] x17: ffffff9fa8eb5690 x16: 0000000000000080
[    0.817072] x15: ffffff9fa7d58c68 x14: ffffff9fa8080fa4
[    0.817074] x13: 000000000000003e x12: 0000000000000000
[    0.817076] x11: ffffff9fa82f1a42 x10: 0000000000000001
[    0.817078] x9 : 9be42252b78f7e00 x8 : ffffff9fa83cb62b
[    0.817080] x7 : 6d726f66206e6920 x6 : ffffffc17c8dccee
[    0.817081] x5 : ffffff800805b928 x4 : 0000000000000000
[    0.817083] x3 : 0000000000000a67 x2 : 0000000000000006
[    0.817085] x1 : 0000000000000008 x0 : 000000000000002e
[    0.817087]
[    0.817088] PC: 0xffffff9fa7d58d88:
[    0.817089] 8d88  54fff1c1 91000928 5280098b 14000003 91000928 5280090b f9000be8 17ffff87
[    0.817094] 8da8  52800029 b0002cc0 91284800 f90007e8 392c4949 39400101 97af7407 f94007e8
[    0.817100] 8dc8  d4210000 f9400289 17ffffa2 97ad764c a9bf7bfd aa0103e8 9370fc61 910003fd
[    0.817105] 8de8  b4000241 d000294a f140045f 913c054a aa1f03e9 9a82314a 14000004 91000529
[    0.817111]
[    0.817112] LR: 0xffffff9fa7d58d84:
[    0.817112] 8d84  7101b17f 54fff1c1 91000928 5280098b 14000003 91000928 5280090b f9000be8
[    0.817118] 8da4  17ffff87 52800029 b0002cc0 91284800 f90007e8 392c4949 39400101 97af7407
[    0.817123] 8dc4  f94007e8 d4210000 f9400289 17ffffa2 97ad764c a9bf7bfd aa0103e8 9370fc61
[    0.817129] 8de4  910003fd b4000241 d000294a f140045f 913c054a aa1f03e9 9a82314a 14000004
[    0.817135]
[    0.817136] SP: 0xffffff800805b760:
[    0.817136] b760  a7d58dc8 ffffff9f 60c00085 00000000 0805b748 ffffff80 a6c70080 ffffff9f
[    0.817142] b780  ffffffff ffffffff b78f7e00 9be42252 0805b7c0 ffffff80 a7d58dc8 ffffff9f
[    0.817148] b7a0  00000000 00000000 a83cb62b ffffff9f a83cb62b ffffff9f b78f7e00 9be42252
[    0.817154] b7c0  0805b800 ffffff80 a7d583ec ffffff9f 0805b868 ffffff80 a8080d98 ffffff9f
[    0.817160]
[    0.817160] Call trace:
[    0.817161] format_decode+0x424/0x434
[    0.817162] vsnprintf+0xbc/0x674
[    0.817163] vscnprintf+0x38/0x80
[    0.817163] vprintk_store+0x60/0x164
[    0.817164] vprintk_emit+0xd8/0x324
[    0.817165] vprintk_default+0x44/0x68
[    0.817166] vprintk_func+0x314/0x340
[    0.817166] printk+0x54/0x78
[    0.817167] bq2597x_charger_probe+0x8bc/0xb34
[    0.817168] i2c_device_probe+0x244/0x2a4
[    0.817169] driver_probe_device+0x434/0x46c
[    0.817170] __driver_attach+0xb8/0xe4
[    0.817171] bus_for_each_dev+0xc0/0xf0
[    0.817171] driver_attach+0x20/0x28
[    0.817172] bus_add_driver+0x12c/0x21c
[    0.817173] driver_register+0xb0/0x108
[    0.817174] i2c_register_driver+0x3c/0xa4
[    0.817175] bq2597x_charger_driver_init+0x18/0x20
[    0.817175] do_one_initcall+0x19c/0x1e4
[    0.817176] kernel_init_freeable+0x480/0x580
[    0.817177] kernel_init+0x10/0x1f8
[    0.817178] ret_from_fork+0x10/0x18
[    0.817179] ---[ end trace 048069f5a3bee691 ]---

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:21 +00:00
Erfan Abdi
7c56a1e5cb
power: supply: Set type of hvdcp 3.5 to hvdcp3 to get recognized in AOSP
Change-Id: I188e0f3728176a253ec9e03601727aa0bf22ce7c
Signed-off-by: Arian <arian.kulmer@web.de>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:21 +00:00
Adithya R
112087ba3b
power: supply: Import xiaomi changes
* cleaned up a bit

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:21 +00:00
Forenche
2174316fbc
power: supply: maxim: Fix onewire_gpio driver
Signed-off-by: Forenche <prahul2003@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:20 +00:00
Adithya R
c2b979a166
power: supply: Import DS28E16 battery verification driver
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:20 +00:00
Adithya R
7c84d2e700
power: supply: Import BQ2597X charge pump driver
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:20 +00:00
Adithya R
12a70a3ed8
drivers: misc: Import WL2866D LDO driver
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:19 +00:00
Subhajeet Muhuri
5314ec485a
input: misc: aw8624_haptic: Rename to qti-haptics
* Reference:
   b55d97cf10

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:19 +00:00
Arian
39f500b4e7
input: misc: drv2624_haptic: Rename to qti-haptics
This driver behaves like the qti haptics driver and hence we can
use the qti vibrator HAL. Since [1] the qti vibrator HAL checks
wether a qti haptics device is detected and does not work if it's
not a qti one. In order to allow the HAL to work with this driver
we spoof the input device name to qti-haptics if the actual
qti-haptics driver is not built.

[1] c8f31f143e

Change-Id: Ia41019a2dfcc54f0170ffe8877d19102b3b0fb83
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:19 +00:00
Adithya R
3ef65a1562
drivers: misc: Import AW8624 and DRV2624 haptics drivers
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:19 +00:00
merothh
73ebee9d04
init/main: Report fingerprint sensor on boot
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:18 +00:00
Demon000
dd1608b099
fpc1020: remove early display enable hacks
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:18 +00:00
Demon000
9134bba361
gf3208: remove early display enable hacks
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:18 +00:00
Adithya R
2237ef77ba
input: fingerprint: Import GF3208 and FPC1020 drivers
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:18 +00:00
Demon000
1846da47bb
nt36xxx: remove common touchscreen driver dependencies
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:17 +00:00
Demon000
3858146245
nt36xxx: remove tests
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:17 +00:00
Demon000
b3e72e8986
nt36xxx: remove recovery handling
Useless after early display hacks have been removed.

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:17 +00:00
Yaroslav Furman
6d4260a499
input/ts: nt36xxx: Remove MTK parts
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:17 +00:00
Adithya R
3adfcb9ef9
input: touchscreen: Import NT36672C touchpanel driver
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:16 +00:00
AngeloGioacchino Del Regno
a536d8159a
ARM64: dts: sdmmagpie: Remove unused conflicting disp_rdump_memory region
This memory region is unused and conflicting with the cont splash
memory: it's mentally sane to just remove it.

Change-Id: Id0d59eb45ba86595c74d0a9efa10a499780ead22
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:16 +00:00
Yaroslav Furman
5dde59bf9f
ARM64/dts: sdmmagpie: Add lower freq to llcc-bw bus
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:16 +00:00
Dyneteve
96272f75ba
ARM64/dts: sdmmagpie-thermal: Disable LMH sensors
We don't have these sensors and they always show 75C

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:16 +00:00
Adithya R
a74e20bc24
ARM64/dts: pm6150l: Label red LED as white and disable others
* matching our hardware
 * tune breathing lut pattern while we're at it

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:15 +00:00
Adithya R
a6a10f396b
ARM64/dts: qcom: Do not build useless qcom dtb's
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:15 +00:00
xyyx
17d372ce70
ARM64/dts: qcom: Build only required dtb's
* surya is SDMMAGPIE IDP

Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:15 +00:00
Adithya R
237c949df8
ARM64/dts: qcom: Import xiaomi changes
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: I5e9ce8cbf3d59a17382c7aec1da177732393d02a
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:12:12 +00:00
Nauval Rizky
e20e69ec3d
ANDROID: scripts/Kbuild: Force lld usage when LLVM=1 is used
When LLVM=1 is used, we can assume that lld are expected to be used.
But sadly, defining default LD on Makefile is not enough, so we have to
force it here too.

Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:10:25 +00:00
Masahiro Yamada
7747b0cd66
kbuild: support LLVM=1 to switch the default tools to Clang/LLVM
commit a0d1c951ef08ed24f35129267e3595d86f57f5d3 upstream.

As Documentation/kbuild/llvm.rst implies, building the kernel with a
full set of LLVM tools gets very verbose and unwieldy.

Provide a single switch LLVM=1 to use Clang and LLVM tools instead
of GCC and Binutils. You can pass it from the command line or as an
environment variable.

Please note LLVM=1 does not turn on the integrated assembler. You need
to pass LLVM_IAS=1 to use it. When the upstream kernel is ready for the
integrated assembler, I think we can make it default.

We discussed what we need, and we agreed to go with a simple boolean
flag that switches both target and host tools:

  https://lkml.org/lkml/2020/3/28/494
  https://lkml.org/lkml/2020/4/3/43

Some items discussed, but not adopted:

- LLVM_DIR

  When multiple versions of LLVM are installed, I just thought supporting
  LLVM_DIR=/path/to/my/llvm/bin/ might be useful.

  CC      = $(LLVM_DIR)clang
  LD      = $(LLVM_DIR)ld.lld
    ...

  However, we can handle this by modifying PATH. So, we decided to not do
  this.

- LLVM_SUFFIX

  Some distributions (e.g. Debian) package specific versions of LLVM with
  naming conventions that use the version as a suffix.

  CC      = clang$(LLVM_SUFFIX)
  LD      = ld.lld(LLVM_SUFFIX)
    ...

  will allow a user to pass LLVM_SUFFIX=-11 to use clang-11 etc.,
  but the suffixed versions in /usr/bin/ are symlinks to binaries in
  /usr/lib/llvm-#/bin/, so this can also be handled by PATH.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
[nd: conflict in exported vars list from not backporting commit
 e83b9f55448a ("kbuild: add ability to generate BTF type info for vmlinux")]
[nd: hunk against Documentation/kbuild/kbuild.rst dropped due to not backporting
 commit cd238effefa2 ("docs: kbuild: convert docs to ReST and rename to *.rst")]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:10:25 +00:00
Masahiro Yamada
77a5cd8534
kbuild: replace AS=clang with LLVM_IAS=1
commit 7e20e47c70f810d678d02941fa3c671209c4ca97 upstream.

The 'AS' variable is unused for building the kernel. Only the remaining
usage is to turn on the integrated assembler. A boolean flag is a better
fit for this purpose.

AS=clang was added for experts. So, I replaced it with LLVM_IAS=1,
breaking the backward compatibility.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:10:25 +00:00
Fangrui Song
038da8ec81
Documentation/llvm: fix the name of llvm-size
commit 0f44fbc162b737ff6251ae248184390ae2279fee upstream.

The tool is called llvm-size, not llvm-objsize.

Fixes: fcf1b6a35c16 ("Documentation/llvm: add documentation on building w/ Clang/LLVM")
Signed-off-by: Fangrui Song <maskray@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:10:25 +00:00
Nick Desaulniers
ce58d88779
Documentation/llvm: add documentation on building w/ Clang/LLVM
commit fcf1b6a35c16ac500fa908a4022238e5d666eabf upstream.

added to kbuild documentation. Provides more official info on building
kernels with Clang and LLVM than our wiki.

Suggested-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
[nd: hunk against Documentation/kbuild/index.rst dropped due to not backporting
 commit cd238effefa2 ("docs: kbuild: convert docs to ReST and rename to *.rst")]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:10:24 +00:00
Jebaitedneko
488c48dc25
arm64: generate dtb.img from dtbs
Signed-off-by: Forenche <prahul2003@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:09:53 +00:00
Michael Forney
d668228195
kbuild: Use ls(1) instead of stat(1) to obtain file size
stat(1) is not standardized and different implementations have their own
(conflicting) flags for querying the size of a file.

ls(1) provides the same information (value of st.st_size) in the 5th
column, except when the file is a character or block device. This output
is standardized[0]. The -n option turns on -l, which writes lines
formatted like

  "%s %u %s %s %u %s %s\n", <file mode>, <number of links>,
      <owner name>, <group name>, <size>, <date and time>,
      <pathname>

but instead of writing the <owner name> and <group name>, it writes the
numeric owner and group IDs (this avoids /etc/passwd and /etc/group
lookups as well as potential field splitting issues).

The <size> field is specified as "the value that would be returned for
the file in the st_size field of struct stat".

To avoid duplicating logic in several locations in the tree, create
scripts/file-size.sh and update callers to use that instead of stat(1).

[0] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html#tag_20_73_10

Change-Id: I99394a3df075238ba1b1c179740872ff2c3c9ca5
Signed-off-by: Michael Forney <forney@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:08:10 +00:00
CloudedQuartz
565cccaa8f
scripts: Makefile.lib: use python3 for mkdtboimg
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:08:09 +00:00
CloudedQuartz
0d1605d530
scripts: dtc: update mkdtboimg from aosp
https://android.googlesource.com/platform/system/libufdt/
commit - f6b572a2f682196651362713820ed02b6d7e29a9

Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:08:08 +00:00
UtsavBalar1231
2e0697e21a
scripts: use aosp python mkdtboimg for cmd_mkdtimg
Change-Id: I28d4e36bde1f3d30574eb3542909c279ae9028d6
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:08:07 +00:00
Woody Lin
4698bbb6b7
dtbo.img: build device tree overlay partition image
Inspired by "828e0b45 yueyao@ build device tree overlay partition
image", integrating the same feature into floral kernel. The difference
is all build-time generated *.dtbo are packed into dtbo.img instead of
packing only the dtbos specified by the dtboimg.cfg.

dtbo.img is built only when CONFIG_BUILD_ARM64_DT_OVERLAY is set.

Change-Id: Ic0ed97fe699ee56e7272001064abb584690aa40a
Signed-off-by: Woody Lin <woodylin@google.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-03-19 07:08:06 +00:00