Page MenuHomeFreeBSD

libcrypto: add "Generated from" reference to source file
ClosedPublic

Authored by emaste on May 6 2016, 2:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Unknown Object (File)
Mar 20 2024, 1:31 AM
Subscribers
None

Details

Summary

This will make it more obvious that these files should not be edited directly, and provide a hint for finding the real source file.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to libcrypto: add "Generated from" reference to source file.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: jkim.
jkim requested changes to this revision.May 10 2016, 8:40 PM
jkim edited edge metadata.
jkim added inline comments.
secure/lib/libcrypto/Makefile.asm
65 ↗(On Diff #15960)

This is not exactly correct. For example, both sha256-x86_64.S and sha512-x86_64.S are generated from sha512-x86_64.pl.

This revision now requires changes to proceed.May 10 2016, 8:40 PM
secure/lib/libcrypto/Makefile.asm
65 ↗(On Diff #15960)

Oh, indeed. But, do you think (something like) this is a reasonable change with that addressed?

secure/lib/libcrypto/Makefile.asm
65 ↗(On Diff #15960)

Yes. Maybe "Please do not modify. This file is auto-generated." kind of comment is enough, I think.

emaste edited edge metadata.
  • use multiple echos as already done for i386 .S generation
  • remove the .cmt intermediate step
emaste edited edge metadata.

Add "do not modify" text

secure/lib/libcrypto/Makefile.asm
65 ↗(On Diff #15960)

Maybe "Please do not modify. This file is auto-generated." kind of comment is enough, I think.

Oh, perhaps. Although I think it's convenient to include the source file especially where the .S basename does not match the .pl.

Anyway, I don't have a strong feeling either way.

secure/lib/libcrypto/Makefile.asm
59 ↗(On Diff #16164)

*.cmt must be removed from the above three lines.

Remove .cmt files from CLEANFILES list

secure/lib/libcrypto/Makefile.asm
71 ↗(On Diff #16166)

The x86-64 script requires the second argument for the output file because it needs to know whether it is creating sha256-x86_64.S or sha512-x86_64.S. That's why the intermediate files were created in the first place. :-(

Don't try to be clever. Just put a 'Do not modify' comment.

secure/lib/libcrypto/Makefile.asm
141 ↗(On Diff #16167)

Sorry for nit-picking but a blank is in the wrong place. :-)

jkim edited edge metadata.
This revision is now accepted and ready to land.May 11 2016, 4:18 PM
This revision was automatically updated to reflect the committed changes.