On 27. 05. 19 23:17, [email protected] wrote: > Hi Michal, > > thank you for your review. > >> Sorry I missed this patch. Please take a look at script which was sent >> by Luca (arm64: zynqmp: add tool to minimize psu_init_gpl.c files) >> for tuning psu_init_gpl files. >> You should use the same for this file to align it with checkpatch. > > I'm not sure whether this tool works well for old ps7 devices, but I've fixed > the warnings from checkpatch.pl, , sorry for not doing it right away. Will > send > in a moment.
Definitely not but that's good manual how to do it. Anyway here are steps I used for tuning ps7 files + some manual steps. If you can c&p what Luca did for psu and use these steps + Luca's steps we can have one more script for ps7 init files too. Thanks, Michal #!/bin/bash rm -f ps7_init_gpl.h sed -i '/perf_start_clock/,$d' ps7_init_gpl.c sed -i '/^#/d' ps7_init_gpl.c sed -i '/\/\*/,/*\//d' ps7_init_gpl.c sed -i '/^[ \t]*\/\//d' ps7_init_gpl.c /mnt/disk/linux/scripts/Lindent ps7_init_gpl.c sed -i 's/^unsigned long /static &/g' ps7_init_gpl.c sed -i 's/()$/(void)/g' ps7_init_gpl.c sed -i 's/0X/0x/g' ps7_init_gpl.c sed -i 's/long\ ps7GetSiliconVersion/long_ps7GetSiliconVersion/g' ps7_init_gpl.c sed -i 's/int\ ps7_config/int_ps7_config/g' ps7_init_gpl.c cat ps7_init_gpl.c | tr "\n" "\z" | sed 's/EXIT(),zz};zz/EXIT(),z};zz/g' | tr "\z" "\n" > /tmp/1; cp /tmp/1 ps7_init_gpl.c NAME="ps7_debug_._.\[\] \ " for i in $NAME; do echo $i sed -i "/$i/,/^};$/d" ps7_init_gpl.c done NAME="ps7_debug \ getPS7MessageInfo \ mask_write \ mask_poll \ mask_read \ int_ps7_config \ long_ps7GetSiliconVersion \ " for i in $NAME; do echo $i sed -i "/$i/,/^}$/d" ps7_init_gpl.c done /mnt/disk/linux/scripts/Lindent ps7_init_gpl.c cat << EOF | cat - ps7_init_gpl.c | tee ps7_init_gpl.c /* * (c) Copyright 2010-2014 Xilinx, Inc. All rights reserved. * * SPDX-License-Identifier: GPL-2.0+ */ #include <asm/arch/ps7_init_gpl.h> EOF -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
signature.asc
Description: OpenPGP digital signature
_______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

