/dump_fw.mk (03da4a81344f3ab2e45d40dee827c7b4fef0cbce) (1600 bytes) (mode 100644) (type blob)
#
# Makefile for wlags49_cs_xxx
#
# NOTE if compiling wl_lkm_714:
# - the firmware files need to be modified to include "mmd.h" instead of "..\hcf\mmd.h"
# - include/hcf/hcfcfg.h line 775 should be commented out
# - select the appropriate DIR_FW and LKM_CFLAGS values below
LIB := ../lib
DIR_HCF = hcf
DIR_DHF = dhf
# 714 firmware is in
#DIR_FW = dhf
# 718 firmware is in
DIR_FW = firmware
DIR_CONFIG = include/hcf
DIR_WIRELESS = include/wireless
CONFIG_HEADERS = $(DIR_CONFIG)/debug.h $(DIR_CONFIG)/hcfcfg.h
HCF_HEADERS = $(DIR_HCF)/hcf.h $(DIR_HCF)/mdd.h $(DIR_HCF)/hcfdef.h
MMD_HEADERS = $(MMD_DIR)/mmd.h
WIRELESS_HEADERS = $(DIR_WIRELESS)/wl_enc.h $(DIR_WIRELESS)/wl_if.h $(DIR_WIRELESS)/wl_internal.h $(DIR_WIRELESS)/wl_version.h
OBJS = dump_fw.o
CFLAGS = -O3 -Wall -Wstrict-prototypes -pipe
# CFLAGS for wl_lkm_714
#LKM_CFLAGS = -D__wl_lkm=714
# CFLAGS for wl_lkm_718
LKM_CFLAGS = -DHCF_DLV -D__wl_lkm=718
CPPFLAGS =
CC = gcc -I$(DIR_CONFIG) -I$(DIR_HCF) -I$(DIR_DHF)
H2_OBJS = $(DIR_FW)/ap_h2.o $(DIR_FW)/sta_h2.o
H2_CFLAGS = -DHCF_TYPE=4
H1_OBJS = $(DIR_FW)/ap_h1.o $(DIR_FW)/sta_h1.o
H1_CFLAGS = -DHCF_TYPE=0
# H1-STAP and H2-STAP are the default targets
all: dump_h1_fw dump_h2_fw hfwget
dump_h1_fw : CFLAGS+= $(LKM_CFLAGS) $(H1_CFLAGS)
dump_h1_fw : $(OBJS) $(H1_OBJS)
gcc $(CFLAGS) $^ -o $@
dump_h2_fw : CFLAGS+= $(LKM_CFLAGS) $(H2_CFLAGS)
dump_h2_fw : $(OBJS) $(H2_OBJS)
gcc $(CFLAGS) $^ -o $@
hfwget : hfwget.c
gcc $(CFLAGS) $^ -o $@
clean :
rm $(OBJS) $(H1_OBJS) $(H2_OBJS) dump_h1_fw dump_h2_fw
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
1613 |
8778f6f182f5ae7bf0351c6b55644abe1cea2d7b |
README.dump_fw |
100644 |
blob |
10972 |
561dd2af15d3e82853289603518497d989e48374 |
dump_fw.c |
100644 |
blob |
1600 |
03da4a81344f3ab2e45d40dee827c7b4fef0cbce |
dump_fw.mk |
100644 |
blob |
25580 |
1c3a95b4ab64a45766fc9903c5aa464f0b1646dd |
hfwget.c |
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