tuxsavvy / agere_fw_utils (public) (License: Dual BSD 3-clause and GPLv2) (since 2021-02-07) (hash sha1)
Personal fork of https://repo.or.cz/agere_fw_utils.git
List of commits:
Subject Hash Author Date (UTC)
Check if we are in wl_lkm tree and build appropriately 4af298b374a1dea172b57acbd080773912d22087 David Kilroy 2008-10-26 14:30:33
Use C99 types 11362c209f9ec7369931b9a25a407c21476c48e4 David Kilroy 2008-10-26 14:30:03
hfwget refactorring posted as hfwget2 April 2008 9b77acdf3330592acda5261d282c579cc1497637 David Kilroy 2008-10-26 14:27:32
dump_fw and hfwget posted Sep 2007 77d205076542510222c6e8359bb2647b0d4e0873 David Kilroy 2008-10-26 14:22:02
Add hfwget.c from hermesap-0.2 9239c21487b524cf0f87b4ffa4828793713fbecd David Kilroy 2008-10-26 14:20:38
dump_fw posted June 2007 617a0ae960430d0d93a533ac5dffc7b9c07a777a David Kilroy 2008-10-26 14:19:45
Commit 4af298b374a1dea172b57acbd080773912d22087 - Check if we are in wl_lkm tree and build appropriately
Author: David Kilroy
Author date (UTC): 2008-10-26 14:30
Committer name: David Kilroy
Committer date (UTC): 2008-10-26 14:30
Parent(s): 11362c209f9ec7369931b9a25a407c21476c48e4
Signing key:
Tree: dbcfce53f6203d8cd300592053c881421437fd9c
File Lines added Lines deleted
dump_fw.mk 33 20
File dump_fw.mk changed (mode: 100644) (index 03da4a8..352bd0a)
9 9
10 10 LIB := ../lib LIB := ../lib
11 11
12 DIR_HCF = hcf
13 DIR_DHF = dhf
12 DIR_HCF := hcf
13 DIR_DHF := dhf
14 14 # 714 firmware is in # 714 firmware is in
15 15 #DIR_FW = dhf #DIR_FW = dhf
16 16 # 718 firmware is in # 718 firmware is in
17 DIR_FW = firmware
18 DIR_CONFIG = include/hcf
19 DIR_WIRELESS = include/wireless
17 DIR_FW := firmware
18 DIR_CONFIG := include/hcf
19 DIR_WIRELESS := include/wireless
20 20
21 CONFIG_HEADERS = $(DIR_CONFIG)/debug.h $(DIR_CONFIG)/hcfcfg.h
22 HCF_HEADERS = $(DIR_HCF)/hcf.h $(DIR_HCF)/mdd.h $(DIR_HCF)/hcfdef.h
23 MMD_HEADERS = $(MMD_DIR)/mmd.h
24 WIRELESS_HEADERS = $(DIR_WIRELESS)/wl_enc.h $(DIR_WIRELESS)/wl_if.h $(DIR_WIRELESS)/wl_internal.h $(DIR_WIRELESS)/wl_version.h
21 CONFIG_HEADERS := $(DIR_CONFIG)/debug.h $(DIR_CONFIG)/hcfcfg.h
22 HCF_HEADERS := $(DIR_HCF)/hcf.h $(DIR_HCF)/mdd.h $(DIR_HCF)/hcfdef.h
23 MMD_HEADERS := $(MMD_DIR)/mmd.h
24 WIRELESS_HEADERS := $(DIR_WIRELESS)/wl_enc.h $(DIR_WIRELESS)/wl_if.h $(DIR_WIRELESS)/wl_internal.h $(DIR_WIRELESS)/wl_version.h
25 25
26 OBJS = dump_fw.o
26 OBJS := dump_fw.o
27 27
28 CFLAGS = -O3 -Wall -Wstrict-prototypes -pipe
28 CFLAGS := -O3 -Wall -Wstrict-prototypes -pipe
29 29 # CFLAGS for wl_lkm_714 # CFLAGS for wl_lkm_714
30 30 #LKM_CFLAGS = -D__wl_lkm=714 #LKM_CFLAGS = -D__wl_lkm=714
31 31 # CFLAGS for wl_lkm_718 # CFLAGS for wl_lkm_718
32 LKM_CFLAGS = -DHCF_DLV -D__wl_lkm=718
33 CPPFLAGS =
34 CC = gcc -I$(DIR_CONFIG) -I$(DIR_HCF) -I$(DIR_DHF)
32 LKM_CFLAGS := -DHCF_DLV -D__wl_lkm=718
33 CPPFLAGS :=
34 CC := gcc -I$(DIR_CONFIG) -I$(DIR_HCF) -I$(DIR_DHF)
35 35
36 H2_OBJS = $(DIR_FW)/ap_h2.o $(DIR_FW)/sta_h2.o
37 H2_CFLAGS = -DHCF_TYPE=4
36 H2_OBJS := $(DIR_FW)/ap_h2.o $(DIR_FW)/sta_h2.o
37 H2_CFLAGS := -DHCF_TYPE=4
38 38
39 H1_OBJS = $(DIR_FW)/ap_h1.o $(DIR_FW)/sta_h1.o
40 H1_CFLAGS = -DHCF_TYPE=0
39 H1_OBJS := $(DIR_FW)/ap_h1.o $(DIR_FW)/sta_h1.o
40 H1_CFLAGS := -DHCF_TYPE=0
41 41
42 TARGETS:=hfwget
42 43
44 IN_ROOT:=n
45 # Check if we are in wl_lkm root
46 ifneq (,$(findstring $(DIR_FW),$(wildcard $(DIR_FW))))
47 ifneq (,$(findstring $(DIR_HCF),$(wildcard $(DIR_HCF))))
48 IN_ROOT:=y
49 endif
50 endif
43 51
44 # H1-STAP and H2-STAP are the default targets
45 all: dump_h1_fw dump_h2_fw hfwget
52 ifeq ($(IN_ROOT),y)
53 TARGETS+=dump_h1_fw dump_h2_fw
54 else
55 $(info Info: Not in wl_lkm directory, so not building wl_lkm dumpers)
56 endif
57
58 all: $(TARGETS)
46 59
47 60 dump_h1_fw : CFLAGS+= $(LKM_CFLAGS) $(H1_CFLAGS) dump_h1_fw : CFLAGS+= $(LKM_CFLAGS) $(H1_CFLAGS)
48 61 dump_h1_fw : $(OBJS) $(H1_OBJS) dump_h1_fw : $(OBJS) $(H1_OBJS)
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/tuxsavvy/agere_fw_utils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/tuxsavvy/agere_fw_utils

Clone this repository using git:
git clone git://git.rocketgit.com/user/tuxsavvy/agere_fw_utils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main