1 2SRCDIR=${SRCTOP}/sys/contrib/openzfs/module 3INCDIR=${SRCTOP}/sys/contrib/openzfs/include 4 5KMOD= zfs 6 7.PATH: ${SRCDIR}/avl \ 8 ${SRCDIR}/lua \ 9 ${SRCDIR}/nvpair \ 10 ${SRCDIR}/icp/algs/blake3 \ 11 ${SRCDIR}/icp/algs/edonr \ 12 ${SRCDIR}/icp/algs/sha2 \ 13 ${SRCDIR}/icp/asm-aarch64/blake3 \ 14 ${SRCDIR}/icp/asm-aarch64/sha2 \ 15 ${SRCDIR}/icp/asm-arm/sha2 \ 16 ${SRCDIR}/icp/asm-ppc64/sha2 \ 17 ${SRCDIR}/icp/asm-ppc64/blake3 \ 18 ${SRCDIR}/icp/asm-x86_64/blake3 \ 19 ${SRCDIR}/icp/asm-x86_64/sha2 \ 20 ${SRCDIR}/os/freebsd/spl \ 21 ${SRCDIR}/os/freebsd/zfs \ 22 ${SRCDIR}/unicode \ 23 ${SRCDIR}/zcommon \ 24 ${SRCDIR}/zfs \ 25 ${SRCDIR}/zstd \ 26 ${SRCDIR}/zstd/lib/common \ 27 ${SRCDIR}/zstd/lib/compress \ 28 ${SRCDIR}/zstd/lib/decompress 29 30CFLAGS+= -I${INCDIR} 31CFLAGS+= -I${SRCDIR}/icp/include 32CFLAGS+= -I${INCDIR}/os/freebsd 33CFLAGS+= -I${INCDIR}/os/freebsd/spl 34CFLAGS+= -I${INCDIR}/os/freebsd/zfs 35CFLAGS+= -I${SRCDIR}/zstd/include 36CFLAGS+= -I${.CURDIR} 37 38CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS \ 39 -DHAVE_UIO_ZEROCOPY -DWITHOUT_NETDUMP -D__KERNEL -D_SYS_CONDVAR_H_ \ 40 -D_SYS_VMEM_H_ 41 42.if ${MACHINE_ARCH} == "amd64" 43CFLAGS+= -D__x86_64 -DHAVE_SSE2 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 \ 44 -DHAVE_AVX -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512BW 45.endif 46 47.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ 48 ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" 49CFLAGS+= -DBITS_PER_LONG=32 50.else 51CFLAGS+= -DBITS_PER_LONG=64 52.endif 53 54SRCS= vnode_if.h device_if.h bus_if.h 55 56# avl 57SRCS+= avl.c 58 59# icp 60SRCS+= edonr.c 61 62#icp/algs/blake3 63SRCS+= blake3.c \ 64 blake3_generic.c \ 65 blake3_impl.c 66 67 68.if ${MACHINE_ARCH} == "aarch64" 69#icp/asm-aarch64/blake3 70SRCS+= b3_aarch64_sse2.S \ 71 b3_aarch64_sse41.S 72.endif 73 74.if ${MACHINE_ARCH} == "powerpc64le" 75#icp/asm-ppc64/blake3 76SRCS+= b3_ppc64le_sse2.S \ 77 b3_ppc64le_sse41.S 78.endif 79 80.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 81#icp/asm-x86_64/blake3 82SRCS+= blake3_avx2.S \ 83 blake3_avx512.S \ 84 blake3_sse2.S \ 85 blake3_sse41.S 86.endif 87 88#icp/algs/sha2 89SRCS+= sha2_generic.c \ 90 sha256_impl.c \ 91 sha512_impl.c 92 93.if ${MACHINE_ARCH} == "armv7" 94#icp/asm-arm/sha2 95SRCS+= sha256-armv7.S \ 96 sha512-armv7.S 97.endif 98 99.if ${MACHINE_ARCH} == "aarch64" 100#icp/asm-aarch64/sha2 101OBJS+= zfs-sha256-armv8.o \ 102 zfs-sha512-armv8.o 103.endif 104 105.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc64le" 106#icp/asm-ppc64/sha2 107SRCS+= sha256-p8.S \ 108 sha512-p8.S \ 109 sha256-ppc.S \ 110 sha512-ppc.S 111.endif 112 113.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 114#icp/asm-x86_64/sha2 115OBJS+= zfs-sha256-x86_64.o \ 116 zfs-sha512-x86_64.o 117.endif 118 119#lua 120SRCS+= lapi.c \ 121 lauxlib.c \ 122 lbaselib.c \ 123 lcode.c \ 124 lcompat.c \ 125 lcorolib.c \ 126 lctype.c \ 127 ldebug.c \ 128 ldo.c \ 129 lfunc.c \ 130 lgc.c \ 131 llex.c \ 132 lmem.c \ 133 lobject.c \ 134 lopcodes.c \ 135 lparser.c \ 136 lstate.c \ 137 lstring.c \ 138 lstrlib.c \ 139 ltable.c \ 140 ltablib.c \ 141 ltm.c \ 142 lvm.c \ 143 lzio.c 144 145#nvpair 146SRCS+= nvpair.c \ 147 fnvpair.c \ 148 nvpair_alloc_spl.c \ 149 nvpair_alloc_fixed.c 150 151#os/freebsd/spl 152SRCS+= acl_common.c \ 153 callb.c \ 154 list.c \ 155 spl_acl.c \ 156 spl_cmn_err.c \ 157 spl_dtrace.c \ 158 spl_kmem.c \ 159 spl_kstat.c \ 160 spl_misc.c \ 161 spl_policy.c \ 162 spl_procfs_list.c \ 163 spl_string.c \ 164 spl_sunddi.c \ 165 spl_sysevent.c \ 166 spl_taskq.c \ 167 spl_uio.c \ 168 spl_vfs.c \ 169 spl_vm.c \ 170 spl_zlib.c \ 171 spl_zone.c 172 173 174.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ 175 ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" 176SRCS+= spl_atomic.c 177.endif 178 179#os/freebsd/zfs 180SRCS+= abd_os.c \ 181 arc_os.c \ 182 crypto_os.c \ 183 dmu_os.c \ 184 event_os.c \ 185 hkdf.c \ 186 kmod_core.c \ 187 spa_os.c \ 188 sysctl_os.c \ 189 vdev_file.c \ 190 vdev_geom.c \ 191 vdev_label_os.c \ 192 zfs_acl.c \ 193 zfs_ctldir.c \ 194 zfs_debug.c \ 195 zfs_dir.c \ 196 zfs_ioctl_compat.c \ 197 zfs_ioctl_os.c \ 198 zfs_racct.c \ 199 zfs_vfsops.c \ 200 zfs_vnops_os.c \ 201 zfs_znode.c \ 202 zio_crypt.c \ 203 zvol_os.c 204 205#unicode 206SRCS+= uconv.c \ 207 u8_textprep.c 208 209#zcommon 210SRCS+= zfeature_common.c \ 211 zfs_comutil.c \ 212 zfs_deleg.c \ 213 zfs_fletcher.c \ 214 zfs_fletcher_avx512.c \ 215 zfs_fletcher_intel.c \ 216 zfs_fletcher_sse.c \ 217 zfs_fletcher_superscalar.c \ 218 zfs_fletcher_superscalar4.c \ 219 zfs_namecheck.c \ 220 zfs_prop.c \ 221 zpool_prop.c \ 222 zprop_common.c 223 224#zfs 225SRCS+= abd.c \ 226 aggsum.c \ 227 arc.c \ 228 blake3_zfs.c \ 229 blkptr.c \ 230 bplist.c \ 231 bpobj.c \ 232 brt.c \ 233 btree.c \ 234 cityhash.c \ 235 dbuf.c \ 236 dbuf_stats.c \ 237 bptree.c \ 238 bqueue.c \ 239 dataset_kstats.c \ 240 ddt.c \ 241 ddt_zap.c \ 242 dmu.c \ 243 dmu_diff.c \ 244 dmu_object.c \ 245 dmu_objset.c \ 246 dmu_recv.c \ 247 dmu_redact.c \ 248 dmu_send.c \ 249 dmu_traverse.c \ 250 dmu_tx.c \ 251 dmu_zfetch.c \ 252 dnode.c \ 253 dnode_sync.c \ 254 dsl_dataset.c \ 255 dsl_deadlist.c \ 256 dsl_deleg.c \ 257 dsl_bookmark.c \ 258 dsl_dir.c \ 259 dsl_crypt.c \ 260 dsl_destroy.c \ 261 dsl_pool.c \ 262 dsl_prop.c \ 263 dsl_scan.c \ 264 dsl_synctask.c \ 265 dsl_userhold.c \ 266 edonr_zfs.c \ 267 fm.c \ 268 gzip.c \ 269 lzjb.c \ 270 lz4.c \ 271 lz4_zfs.c \ 272 metaslab.c \ 273 mmp.c \ 274 multilist.c \ 275 objlist.c \ 276 pathname.c \ 277 range_tree.c \ 278 refcount.c \ 279 rrwlock.c \ 280 sa.c \ 281 sha2_zfs.c \ 282 skein_zfs.c \ 283 spa.c \ 284 spa_checkpoint.c \ 285 spa_config.c \ 286 spa_errlog.c \ 287 spa_history.c \ 288 spa_log_spacemap.c \ 289 spa_misc.c \ 290 spa_stats.c \ 291 space_map.c \ 292 space_reftree.c \ 293 txg.c \ 294 uberblock.c \ 295 unique.c \ 296 vdev.c \ 297 vdev_draid.c \ 298 vdev_draid_rand.c \ 299 vdev_indirect.c \ 300 vdev_indirect_births.c \ 301 vdev_indirect_mapping.c \ 302 vdev_initialize.c \ 303 vdev_label.c \ 304 vdev_mirror.c \ 305 vdev_missing.c \ 306 vdev_queue.c \ 307 vdev_raidz.c \ 308 vdev_raidz_math.c \ 309 vdev_raidz_math_scalar.c \ 310 vdev_raidz_math_avx2.c \ 311 vdev_raidz_math_avx512bw.c \ 312 vdev_raidz_math_avx512f.c \ 313 vdev_raidz_math_sse2.c \ 314 vdev_raidz_math_ssse3.c \ 315 vdev_rebuild.c \ 316 vdev_removal.c \ 317 vdev_root.c \ 318 vdev_trim.c \ 319 zap.c \ 320 zap_leaf.c \ 321 zap_micro.c \ 322 zcp.c \ 323 zcp_get.c \ 324 zcp_global.c \ 325 zcp_iter.c \ 326 zcp_set.c \ 327 zcp_synctask.c \ 328 zfeature.c \ 329 zfs_byteswap.c \ 330 zfs_chksum.c \ 331 zfs_file_os.c \ 332 zfs_fm.c \ 333 zfs_fuid.c \ 334 zfs_impl.c \ 335 zfs_ioctl.c \ 336 zfs_log.c \ 337 zfs_onexit.c \ 338 zfs_quota.c \ 339 zfs_ratelimit.c \ 340 zfs_replay.c \ 341 zfs_rlock.c \ 342 zfs_sa.c \ 343 zfs_vnops.c \ 344 zil.c \ 345 zio.c \ 346 zio_checksum.c \ 347 zio_compress.c \ 348 zio_inject.c \ 349 zle.c \ 350 zrlock.c \ 351 zthr.c \ 352 zvol.c 353 354#zstd 355SRCS+= zfs_zstd.c \ 356 entropy_common.c \ 357 error_private.c \ 358 fse_compress.c \ 359 fse_decompress.c \ 360 hist.c \ 361 huf_compress.c \ 362 huf_decompress.c \ 363 pool.c \ 364 xxhash.c \ 365 zstd_common.c \ 366 zstd_compress.c \ 367 zstd_compress_literals.c \ 368 zstd_compress_sequences.c \ 369 zstd_compress_superblock.c \ 370 zstd_ddict.c \ 371 zstd_decompress.c \ 372 zstd_decompress_block.c \ 373 zstd_double_fast.c \ 374 zstd_fast.c \ 375 zstd_lazy.c \ 376 zstd_ldm.c \ 377 zstd_opt.c 378 379.include <bsd.kmod.mk> 380 381CFLAGS+= -include ${SRCTOP}/sys/cddl/compat/opensolaris/sys/debug_compat.h 382CFLAGS+= -include ${INCDIR}/os/freebsd/spl/sys/ccompile.h 383CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/static_ccompile.h 384 385CFLAGS.sysctl_os.c= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 386CFLAGS.xxhash.c+= -include ${SRCTOP}/sys/sys/_null.h 387 388CFLAGS.gcc+= -Wno-pointer-to-int-cast 389 390CFLAGS.abd.c= -Wno-cast-qual 391CFLAGS.ddt.c= -Wno-cast-qual 392CFLAGS.dmu.c= -Wno-cast-qual 393CFLAGS.dmu_traverse.c= -Wno-cast-qual 394CFLAGS.dnode.c= ${NO_WUNUSED_BUT_SET_VARIABLE} 395CFLAGS.dsl_deadlist.c= -Wno-cast-qual 396CFLAGS.dsl_dir.c= -Wno-cast-qual 397CFLAGS.dsl_prop.c= -Wno-cast-qual 398CFLAGS.edonr.c= -Wno-cast-qual 399CFLAGS.fm.c= -Wno-cast-qual 400CFLAGS.hist.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 401CFLAGS.lapi.c= -Wno-cast-qual 402CFLAGS.lcompat.c= -Wno-cast-qual 403CFLAGS.ldo.c= ${NO_WINFINITE_RECURSION} 404CFLAGS.lobject.c= -Wno-cast-qual 405CFLAGS.ltable.c= -Wno-cast-qual 406CFLAGS.lvm.c= -Wno-cast-qual 407CFLAGS.lz4.c= -Wno-cast-qual 408CFLAGS.lz4_zfs.c= -Wno-cast-qual 409CFLAGS.nvpair.c= -Wno-cast-qual -DHAVE_RPC_TYPES ${NO_WSTRINGOP_OVERREAD} 410CFLAGS.pool.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 411CFLAGS.pool.c= -U__BMI__ -fno-tree-vectorize 412CFLAGS.spa.c= -Wno-cast-qual 413CFLAGS.spa_misc.c= -Wno-cast-qual 414CFLAGS.spl_string.c= -Wno-cast-qual 415CFLAGS.spl_vm.c= -Wno-cast-qual 416CFLAGS.spl_zlib.c= -Wno-cast-qual 417CFLAGS.u8_textprep.c= -Wno-cast-qual 418CFLAGS.vdev_draid.c= -Wno-cast-qual 419CFLAGS.vdev_raidz.c= -Wno-cast-qual 420CFLAGS.vdev_raidz_math.c= -Wno-cast-qual 421CFLAGS.vdev_raidz_math_avx2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier 422CFLAGS.vdev_raidz_math_avx512f.c= -Wno-cast-qual -Wno-duplicate-decl-specifier 423CFLAGS.vdev_raidz_math_scalar.c= -Wno-cast-qual 424CFLAGS.vdev_raidz_math_sse2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier 425CFLAGS.zap_leaf.c= -Wno-cast-qual 426CFLAGS.zap_micro.c= -Wno-cast-qual 427CFLAGS.zcp.c= -Wno-cast-qual 428CFLAGS.zfs_fletcher.c= -Wno-cast-qual -Wno-pointer-arith 429CFLAGS.zfs_fletcher_avx512.c= -Wno-cast-qual -Wno-pointer-arith 430CFLAGS.zfs_fletcher_intel.c= -Wno-cast-qual -Wno-pointer-arith 431CFLAGS.zfs_fletcher_sse.c= -Wno-cast-qual -Wno-pointer-arith 432CFLAGS.zfs_fm.c= -Wno-cast-qual ${NO_WUNUSED_BUT_SET_VARIABLE} 433CFLAGS.zfs_ioctl.c= -Wno-cast-qual 434CFLAGS.zfs_log.c= -Wno-cast-qual 435CFLAGS.zfs_vnops_os.c= -Wno-pointer-arith 436CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith 437CFLAGS.zil.c= -Wno-cast-qual 438CFLAGS.zio.c= -Wno-cast-qual 439CFLAGS.zprop_common.c= -Wno-cast-qual 440CFLAGS.zrlock.c= -Wno-cast-qual 441 442#zstd 443CFLAGS.entropy_common.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 444CFLAGS.error_private.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 445CFLAGS.fse_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} ${NO_WUNUSED_BUT_SET_VARIABLE} 446CFLAGS.fse_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 447CFLAGS.huf_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 448CFLAGS.huf_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 449CFLAGS.xxhash.c+= -U__BMI__ -fno-tree-vectorize 450CFLAGS.xxhash.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 451CFLAGS.zstd.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 452CFLAGS.zstd_common.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 453CFLAGS.zstd_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 454CFLAGS.zstd_compress_literals.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 455CFLAGS.zstd_compress_sequences.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 456CFLAGS.zstd_compress_superblock.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} ${NO_WUNUSED_BUT_SET_VARIABLE} 457CFLAGS.zstd_ddict.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 458CFLAGS.zstd_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 459CFLAGS.zstd_decompress_block.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 460CFLAGS.zstd_double_fast.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 461CFLAGS.zstd_fast.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 462CFLAGS.zstd_lazy.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 463CFLAGS.zstd_ldm.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 464CFLAGS.zstd_opt.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} 465 466.if ${MACHINE_ARCH} == "aarch64" 467__ZFS_ZSTD_AARCH64_FLAGS= -include ${SRCDIR}/zstd/include/aarch64_compat.h 468CFLAGS.zstd.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 469CFLAGS.entropy_common.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 470CFLAGS.error_private.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 471CFLAGS.fse_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 472CFLAGS.fse_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 473CFLAGS.hist.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 474CFLAGS.huf_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 475CFLAGS.huf_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 476CFLAGS.pool.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 477CFLAGS.xxhash.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 478CFLAGS.zstd_common.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 479CFLAGS.zstd_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 480CFLAGS.zstd_compress_literals.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 481CFLAGS.zstd_compress_sequences.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 482CFLAGS.zstd_compress_superblock.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 483CFLAGS.zstd_ddict.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 484CFLAGS.zstd_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 485CFLAGS.zstd_decompress_block.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 486CFLAGS.zstd_double_fast.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 487CFLAGS.zstd_fast.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 488CFLAGS.zstd_lazy.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 489CFLAGS.zstd_ldm.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 490CFLAGS.zstd_opt.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} 491 492b3_aarch64_sse2.o: b3_aarch64_sse2.S 493 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ 494 -o ${.TARGET} 495 ${CTFCONVERT_CMD} 496 497b3_aarch64_sse41.o: b3_aarch64_sse41.S 498 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ 499 -o ${.TARGET} 500 ${CTFCONVERT_CMD} 501 502zfs-sha256-armv8.o: sha256-armv8.S 503 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} \ 504 ${SRCDIR}/icp/asm-aarch64/sha2/sha256-armv8.S \ 505 -o ${.TARGET} 506 ${CTFCONVERT_CMD} 507 508zfs-sha512-armv8.o: sha512-armv8.S 509 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} \ 510 ${SRCDIR}/icp/asm-aarch64/sha2/sha512-armv8.S \ 511 -o ${.TARGET} 512 ${CTFCONVERT_CMD} 513.endif 514 515.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 516zfs-sha256-x86_64.o: sha256-x86_64.S 517 ${CC} -c ${CFLAGS} ${WERROR} \ 518 ${SRCDIR}/icp/asm-x86_64/sha2/sha256-x86_64.S \ 519 -o ${.TARGET} 520 ${CTFCONVERT_CMD} 521 522zfs-sha512-x86_64.o: sha512-x86_64.S 523 ${CC} -c ${CFLAGS} ${WERROR} \ 524 ${SRCDIR}/icp/asm-x86_64/sha2/sha512-x86_64.S \ 525 -o ${.TARGET} 526 ${CTFCONVERT_CMD} 527.endif 528