drivers: use zephyr_library_amend instead of custom library names

1 job 于optimize/drivers_cmakelists in 1 minute 和 34 second (queued for 2 second)
状态 作业 ID 名称 覆盖率
  Ztest
已失败 #39451
zgsz-02 generic
ztest_build_only

00:01:34

 
名称 暂存 失败
已失败
ztest_build_only Ztest
INFO    - Run completed
Uploading artifacts for failed job
Uploading artifacts...
/builds/zephyr/csk/twister-out/**/*.log: found 102 matching artifact files and directories

/builds/zephyr/csk/twister-out/*.json: found 2 matching artifact files and directories

/builds/zephyr/csk/twister-out/*.xml: found 3 matching artifact files and directories

Uploading artifacts as "archive" to coordinator... 201 Created
id=39451 responseStatus=201 Created token=EDJshRqj
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1