Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 1 | Name: Netwide Assembler |
| 2 | Short Name: nasm |
| 3 | URL: https://www.nasm.us/ |
Dale Curtis | 8784bed | 2020-07-13 10:48:27 -0700 | [diff] [blame] | 4 | Version: 2.15.03rc6 / f1cf95480d9df9e7854a4be6844f86ff854e03d2 |
| 5 | CPEPrefix: cpe:/a:nasm:netwide_assembler:2.15.03rc6 |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 6 | License: 2-Clause BSD |
Raphael Kubo da Costa | 63707e5 | 2018-12-05 12:18:29 +0100 | [diff] [blame] | 7 | License File: LICENSE |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 8 | Security Critical: no |
Dale Curtis | 81fc45a | 2020-07-01 12:22:26 -0700 | [diff] [blame] | 9 | Source: https://github.com/netwide-assembler/nasm |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 10 | |
Dale Curtis | 417709d | 2018-11-19 15:46:52 -0800 | [diff] [blame] | 11 | --[ DESCRIPTION ] ------------------ |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 12 | This contains the source to NASM, the assembler used for parts of Chromium. |
| 13 | |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 14 | |
Dale Curtis | 417709d | 2018-11-19 15:46:52 -0800 | [diff] [blame] | 15 | --[ PATCHES ] ------------------ |
| 16 | * See README.patches for the full listing. |
| 17 | |
| 18 | If you make any changes to nasm which are not in upstream, please update the |
| 19 | README.patches file with the following command: |
| 20 | |
| 21 | ./find_patches.py > README.patches |
| 22 | |
| 23 | Note: This script only works if you have added upstream as a remote per the |
| 24 | directions in updating below. |
| 25 | |
| 26 | |
| 27 | --[ UPDATING ] ------------------ |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 28 | To update, have clang in your system path (from //third_party/llvm- |
| 29 | build/Release+Asserts/bin) then do the following: |
| 30 | |
Dale Curtis | 81fc45a | 2020-07-01 12:22:26 -0700 | [diff] [blame] | 31 | git remote add upstream https://github.com/netwide-assembler/nasm.git |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 32 | git fetch upstream |
| 33 | git merge upstream/master |
Dale Curtis | 0e9e5be | 2018-11-01 17:34:21 -0700 | [diff] [blame] | 34 | |
| 35 | # Maybe use git mergetool to resolve any conflicts with local patches. |
| 36 | |
| 37 | # ***DO NOT USE*** git cl upload for this part or you will spam every author |
| 38 | # who committed something upstream with a Gerrit issue... :O You must also |
| 39 | # have the correct Gerrit permissions from one of the OWNERS to do this. |
| 40 | git push origin master |
| 41 | |
| 42 | # You can safely use git cl upload for all of your own modifications past this |
| 43 | # point; I.e., once you have pushed all the commits from the git merge. |
| 44 | |
Dale Curtis | 352a7a1 | 2020-07-10 11:34:02 -0700 | [diff] [blame] | 45 | CC=clang CXX=clang++ CFLAGS="-std=c11 -Werror" ./autogen.sh |
| 46 | CC=clang CXX=clang++ CFLAGS="-std=c11 -Werror" ./configure |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 47 | make perlreq |
| 48 | ./generate_nasm_sources.py |
| 49 | git add <any new .c/.h files which show up> |
Dale Curtis | 9596cc0 | 2018-10-31 14:25:55 -0700 | [diff] [blame] | 50 | |
Dale Curtis | 03afeee | 2020-07-14 16:24:11 -0700 | [diff] [blame] | 51 | # Copy config/config.h to config-(mac|linux).h |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 52 | # Revert config/config.h to the checked in version |
Elly Fong-Jones | 0873b2b | 2022-11-02 19:49:51 +0000 | [diff] [blame^] | 53 | ./generate_nasm_configs.py |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 54 | |
| 55 | git commit -a |
| 56 | |
Dale Curtis | 417709d | 2018-11-19 15:46:52 -0800 | [diff] [blame] | 57 | |
| 58 | --[ CONFIG_H_ ] ------------------ |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 59 | In the event any new config.h flags are added, you may need to regenerate the |
Dale Curtis | 405ddf7 | 2020-07-01 15:48:40 -0700 | [diff] [blame] | 60 | config.h for Linux and Mac -- maybe for Windows if they haven't fixed msvc.h. |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 61 | |
Dale Curtis | e293814 | 2020-06-29 15:29:48 -0700 | [diff] [blame] | 62 | To run the script on macOS you can follow the same instructions as above after |
| 63 | setting up autoconf; with Homebrew: brew install autoconf automake libtool |
| 64 | |
| 65 | You will likely need to set SDKROOT to point to the macOS SDK if you haven't |
| 66 | setup Xcode in the past. If you have the hermetic macOS toolchain in your |
| 67 | checkout just add: |
| 68 | |
| 69 | export SDKROOT=$path_to_chrome_src/build/mac_files/xcode_binaries/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk |
| 70 | |
| 71 | You can stop after configure. Then just follow the copy instructions above. |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 72 | |
Dale Curtis | 417709d | 2018-11-19 15:46:52 -0800 | [diff] [blame] | 73 | |
| 74 | --[ TODOS ] ------------------ |
Dale Curtis | 03afeee | 2020-07-14 16:24:11 -0700 | [diff] [blame] | 75 | None at this time. |
| 76 | |