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/ |
| 4 | Version: bfa1ed0ae9cb15b54b008431d122db3c22cd45eb |
Adrian Taylor | e64bc6c | 2020-06-29 11:40:55 -0700 | [diff] [blame] | 5 | CPEPrefix: cpe:/a:nasm:netwide_assembler:2.14:rc15 |
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 |
| 9 | Source: https://repo.or.cz/nasm.git |
| 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 | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 31 | git remote add upstream https://repo.or.cz/nasm.git |
| 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 | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 45 | CC=clang CXX=clang++ ./autogen.sh |
| 46 | CC=clang CXX=clang++ ./configure |
| 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 | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 51 | # Copy config/config.h to config-(mac|win|linux).h |
| 52 | # Revert config/config.h to the checked in version |
| 53 | |
| 54 | git commit -a |
| 55 | |
Dale Curtis | 417709d | 2018-11-19 15:46:52 -0800 | [diff] [blame] | 56 | |
| 57 | --[ CONFIG_H_ ] ------------------ |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 58 | In the event any new config.h flags are added, you may need to regenerate the |
Dale Curtis | 0e9e5be | 2018-11-01 17:34:21 -0700 | [diff] [blame] | 59 | config.h for Linux and Mac. You may be able to just copy new flags into all |
Dale Curtis | 3dacc5e | 2018-11-01 10:48:41 -0700 | [diff] [blame] | 60 | platform configurations, but this may not always work. |
| 61 | |
| 62 | The mac configuration may need some additional changes depending on the current |
| 63 | SDK version being targeted by Chrome; the following change was made for 10.9: |
| 64 | /* #undef HAVE_FACCESSAT */ |
| 65 | |
Dale Curtis | 417709d | 2018-11-19 15:46:52 -0800 | [diff] [blame] | 66 | |
| 67 | --[ TODOS ] ------------------ |
Dale Curtis | 0e9e5be | 2018-11-01 17:34:21 -0700 | [diff] [blame] | 68 | TODO(dalecurtis): See if there's a CFLAG that can be given to configure to avoid |
| 69 | it using 10.10 features while Chrome targets 10.9 SDK. |