1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/linux-3.18.21/scripts/mod/.devicetable-offsets.h.cmd
2024-07-22 01:58:46 -03:00

2 lines
546 B
Batchfile
Executable File

cmd_scripts/mod/devicetable-offsets.h := (set -e; echo "\#ifndef __DEVICETABLE_OFFSETS_H__"; echo "\#define __DEVICETABLE_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; echo ""; sed -ne "/^->/{s:->\#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$$\#]*\([-0-9]*\) \(.*\):\#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$$\#]*\([^ ]*\) \(.*\):\#define \1 \2 /* \3 */:; s:->::; p;}" scripts/mod/devicetable-offsets.s; echo ""; echo "\#endif" ) > scripts/mod/devicetable-offsets.h